Ron Sher
Ron Sher

Reputation: 181

Unable to generate ANTLR 4 listener through Visual Studio 2012

I'm trying to follow the guidelines as outlined in https://github.com/tunnelvisionlabs/antlr4cs.

I'm using ANTLR Language Support extension.

The problem is that I don't get the generated files. The properties seem OK - I see custom tool MSBuild:Compile but nothing happens when I try to rebuild the project.

What am I missing?

Thanks, Ron

Upvotes: 1

Views: 593

Answers (2)

Ron Sher
Ron Sher

Reputation: 181

OK, after searching for an answer I've finally found one here Seems I needed to add another nuget package at the project level and that's responsible for actually generating the source files from the g4 file.

Upvotes: -1

Sam Harwell
Sam Harwell

Reputation: 99889

The files are generated in the obj/Debug or obj/Release folder, depending on your active build configuration. They will not appear in the Solution Explorer, but the MSBuild configuration instructs Visual Studio to generate and locate the files for IntelliSense purposes from the moment they are saved.

Note: some build platform configurations and/or modifications to the project file can result in the generated files being placed in a different intermediate output folder. The folders mentioned above are simply the most frequently used folders.

Upvotes: 2

Related Questions