Visual Studio 2015 code analysis vs FxCopCmd.exe

I recently installed Visual Sudio 2015 and was able to analyze the code for the solution using the following command:

msbuild.exe MySolution.sln /p:RunCodeAnalysis=true 

where /p:RunCodeAnalysis=true performs code analysis. In fact, it calls FxCopCmd.exe located in

C:\Program Files(x86)\Microsoft Visual Studio 14.0\Team Tools\Static AnalysisTools\FxCop\FxCopCmd.exe

The code analysis was intended to replace FxCop, but in fact Code Analysis is executed by FxCopCmd.exe itself

I might have missed something, but what is the difference between VS Code Analysis and FxCop?

+6
source share
1 answer

FxCop and VS Code Analysis are essentially the same thing. They use the same kernel analysis mechanism (run through fxcopcmd.exe ) and come with the same basic set of rules. Besides the differences in the user interface, the main difference between FxCop and VS Code Analysis is that the latter contains some additional rules (in the assemblies DataflowRules.dll , MaintainabilityRules.dll and ReliabilityRules.dll ), plus a data flow analysis mechanism that supports a subset of these additional rules.

+10
source

All Articles