Defining common fxcop ruleset for all projects/solutions/configurations

 

User wants to configure a common set of fxcop rules and use them for all projects/solutions. Does he need to configure the common set for every new project/solution/configuration?

 

No. User need to override the "CodeAnalysisRules" property to include the common rules he wants to use across the projects/solutions/configurations. He can define the property in the tfsbuild.proj file. Defining the property in this file will override the project specific value of this property (defined in *.csproj).

 

For more details about Static Analysis in Team Build, refer this post.

Disclaimer: I have not tried this fix myself but it should work.