How to run FxCop for an entire solution in Visual Studio 2008

There should be an easy way, I do not want to run code analysis separately for each project.

+4
source share
2 answers

Sorry for the dumb answer earlier ... That's what you REALLY do :)

Define each project to run code analysis during assembly:

  • right click on the project
  • Go to the Code Analysis tab.
  • click "Enable code analysis during assembly"

When you create a solution, it runs CA for each project.

+6
source

I wrote a custom MsBuild task that does this.

http://ripper234.com/p/msbuild-fxcopsolution-task/

+1
source

All Articles