tunnelvisionlabs / antlr4cs

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

CLSCompliant attribute causes compiler warnings in VS2019 #347

Closed garyhuntddn closed 3 years ago

garyhuntddn commented 4 years ago

I prefer the scenario where the compiler has no need to generate warnings/information messages.

I've implemented a PR that allows the use of CLSCompliant to be dictated by the build task for scenarios where the project isn't expecting to be CLS compliant.

It's probably just me being picky but if you're interested in including the PR then by all means do so.

sharwell commented 3 years ago

Duplicate of #10

sharwell commented 3 years ago

See https://github.com/tunnelvisionlabs/antlr4cs/issues/10#issuecomment-66999851 for the expected resolution to this. Not only will marking your assembly CLSCompliant(false) fix the warnings, but it will also make the compiler faster.