Reputation: 1819
I am Using Visual Studio 2015, FxCop 14.0. with Custom rules, and trying to suppress message in GlobalSuppressions.cs. I have set path of the Global Suppression in Project file
<PropertyGroup ..>
..
..
<CodeAnalysisModuleSuppressionsFile>$(SolutionDir)\xxx\xx\xxx\GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
</PropertyGroup>
can anyone please help me fix this.
Upvotes: 4
Views: 2271
Reputation: 150
For those who stumble upon this...
The above answers did not work for me. So give them a try first but if that doesn't work here's what did it for me:
GlobalSuppressions.cs
files from the projectAnalyze
> Configure Code Analysis
> For Solution
Reset
Upvotes: 0
Reputation: 66753
This means that there is already a GlobalSuppressions.cs file present, but it is not included in the project.
To resolve this, enable "Show All Files" in the solution explorer, right-click the GlobalSuppressions.cs file which should now appear, and "Include In Project".
Upvotes: 4
Reputation: 1819
I have done following steps and problem get resolved :
GlobalSuppression.cs
file from project.Upvotes: 2