Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Supress Code Analysis Errors in Generated Code

$
0
0

I love code rules! I want to implement every single one!

The problem is that most of my errors come from the generated code behind WPF.

I have enabled "Supress results from generated code (managed only)", but it makes no difference. The code analyser still looks in this files and complains. It actually raises a second problem: why does the WPF code generator generate code that breaks rules?

How can I work around this without supressing every single error that gets generated?

BTW: Visual Studio 2015. This is a bug with WPF, Silverlight, and probably WintRT etc.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>