4

There must be simple way, I do not want to run Code Analysis separately on each project.

IAdapter
  • 62,595
  • 73
  • 179
  • 242
Peter
  • 3,563
  • 5
  • 30
  • 43

2 Answers2

6

Sorry for the dumb response before..Here's what you REALLY do :)

Set each project to run code analysis on build:

  • right-click the project,
  • go to the Code Analysis tab
  • click "Enable Code Analysis on Build"

When you build the solution, it will run CA on each project

jlembke
  • 13,217
  • 11
  • 42
  • 56
  • Where's this Code Analysis tab you're talking about? Is it specific to VSTS? I am using Professional Edition and can't find it... I use a post-build event to run FxCop. – R. Martinho Fernandes Feb 21 '09 at 03:04
  • @Martinho - I'm using Professional also. Right click the project, and choose properties. It should open a view with a series of tabs. That's what I'm referring to. – jlembke Feb 22 '09 at 07:44
1

I wrote a custom MsBuild task that does this.

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

ripper234
  • 222,824
  • 274
  • 634
  • 905