FxCop ignores GlobalSuppressions

Problem

FxCop ignores the GlobalSuppressions file.

Solution

  1. Open the build properties of the project ([Menu] – [Project] – [Properties] – [Build])
  2. Add “CODE_ANALYSIS” to field [Conditional compilation symbols].

Hint: This field may be different between Debug and Release mode.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.