[antlr-interest] ANTLR build step problem (using MS Visual Studio2008, C#)
Gavin Lambert
antlr at mirality.co.nz
Sun Jan 18 11:57:39 PST 2009
At 07:41 19/01/2009, Sam Harwell wrote:
>Add the following in your .csproj:
>
> <PropertyGroup>
>
><UseHostCompilerIfAvailable>False</UseHostCompilerIfAvailable>
> </PropertyGroup>
Another option is to just make sure you close the generated files
before you build.
The underlying problem is that if the generated files are open in
the editor, then VS will compile what's in the editor, not what's
on disk (unless you make the change above). And while the files
on disk have been regenerated, the editor hasn't reloaded them
yet. You can tell when you get it wrong because you'll be
prompted to reload the files after the build.
More information about the antlr-interest
mailing list