diff --git a/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets b/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets
index 0a5ab447c..823e870c1 100644
--- a/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets
+++ b/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets
@@ -100,12 +100,12 @@
- DesignTimeGrammarCompilation;
+ Antlr4DesignTimeGrammarCompilation;
$(CoreCompileDependsOn)
-
+