Every so often, I forget that non-team editions of Visual Studio do not define the CODE_ANALYSIS constant by default. If you are wondering why FxCop seems to be ignoring your SuppressMessage attributes in your source code, this is probably the reason why. See FAQ: Why does FxCop ignore my in-code (SuppressMessageAttribute) suppressions? [David Kean] for more information on this topic.
15 June 2010
How to get FxCop to take into account SuppressMessage attributes in your code
Leave a Comment »
No comments yet.