How to analyze with FxCop Project file

Procedure

  • Step 1
Run FxCop.exe ([Start] > [All Programs] > [Microsoft FxCop] > [Microsoft FxCop 1.36] or [Microsoft FxCop 10.0]).
StartMenu.png
  • Step 2
Customize project (load assemblies, enable/disable rules, modify options, and so on).
CustomizeFxCopProject.png
  • Step 3
Save FxCop project to CodeAnalysis\CodeAnalysis.fxcop of Solution root folder.
You must not move/copy FxCop Project file from another location to CodeAnalysis folder because FxCop Project file contains path of code analysis target assemblies.
SaveFxCopProject.png
  • Step 4
Run Visual Studio 2010 if not yet.
  • Step 5
Right click on Solutoin and select [Code Analysis with FxCop].
PerformCodeAnalysis.png
  • Step 6
FxCop Integrator analyzes code with $(SolutionRoot)\CodeAnalysis\CodeAnalysis.fxcop.
CodeAnalysisProgress.png

Last edited Jun 19, 2011 at 4:18 AM by sasaminn, version 6

Comments

Galen2000 May 9, 2012 at 6:25 AM 
Do FxCop Integrator has opportunity to analyze with FxCop Project file not only whole solution but also each proect with it's own FxCop Project file? If not, do you plan to implement this?