tunnelvisionlabs / antlr4cs

The original, highly-optimized C# Target for ANTLR 4
Other
449 stars 103 forks source link

Issue after cloning #374

Open rjrizzuto opened 2 years ago

rjrizzuto commented 2 years ago

Here's the steps I follow:

  1. clone a solution containing a project using Antlr4.CodeGenerator
  2. restore nuget packages
  3. build

I get build errors for the project.

To fix it, I have to unload and reload the project that has Antlr4.CodeGen.

The reason appears to be because the project file imports Antlr4.CodeGenerator.props and Antlr4.CodeGenerator.targets. The project file is loaded at step #1, before those files are available at step #2.

Is there a way to get the build to work without the unload/reload step?