Philippe Truche’s Blog

15 June 2010

How to get FxCop to take into account SuppressMessage attributes in your code

Filed under: Uncategorized — Philippe Truche @ 9:07

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.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: