Search code examples
visual-studio-2015code-analysisroslynfxcopanalyzer

Cannot run Code Analysis Analyzer in Visual Studio 2015


I installed Microsoft.CodeAnalysis.CSharp.FxCopAnalyzers from nuget into a project.

enter image description here

The project it is installed into is an existing project, building against Framework 4.5.1.

Code Analysis is Enabled on the project...

enter image description here

... and I see CA warnings in the Build out put and the error window as expected, so I believe the ruleset to be valid.

However I can't seem to see out put from the analyzer, and I can't seem to find what this icon means in the documentation:

Analyzers

Right clicking on the Analyzers node and selecting Open Active Rule Set I can see the CA rules that the FxCop analyzer should be using:

Active Ruleset

Checking the location of the DLL, it's there in the nuget folder as expected:

enter image description here


Solution

  • This package hasn't been updated since January. I guess it's been replaced by

    Microsoft.CodeAnalysis.FxCopAnalyzers