We use code analysis on our projects, and also enabled the 'XML documentation file:' option in our project settings. Also we have set 'Treat warnings as errors' to All.
On the code analysis tab, we checked the option 'Suppress results from generated code (managed only).
Now we use the 'Activity' item in C#, that will create a xaml file. When building the xaml files will create *.g.cs files. And now the code analysis keeps complaining about these auto-generated classes. Also the build will fail because of the missing xml documentation in the *.g.cs files.
We cannot find a way to suppress these things, i think VS should skip these auto-generated files, but is does not.
Is there a way to actually skip these files? We want all other code in the project to comply with our standards code analysis and xml documentation.
If we could somehow edit the templates (generation code) that generate the *.g.cs files, we might be able to get around this Visual Studio problem. But where are those t4-templates (or are those files not t4 templates?)