Reputation: 2291
I have a number of generated .cs files (originating from WSTL files). ReSharper isn't happy and I'm getting so many errors/warnings that its tough to separate the signal from the noise.
Is there a way to work around this? Can I suppress all the warnings/errors in an easy way?
My goal is to keep from (or minimize) changes to the generated files.
Upvotes: 2
Views: 1021
Reputation: 17837
There are different ways to mark code as generated in Resharper the documentation explain them all but i guess that for your case changing the name of the files to match the default *.generated.cs
would be the simpler.
Upvotes: 2
Reputation: 108957
Turn code analysis on/off => Ctrl + Shift + Alt + 8 (with Visual Studio key bindings; otherwise it could just be Ctrl + 8 )
Upvotes: 4