How to Run Code Analysis as Part of the Build

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

To turn on code analysis for a build type, you can either select the code analysis check box in the New Team Build Type Creation Wizard when you create the new Team Build type, or you can modify the TFSBuild.proj file after the build type has been created.

To enable code analysis in the TFSBuild.proj file
  • If you want all projects to run code analysis, regardless of project settings, change the <RunCodeAnalysis> tag to Always.
  • If you want to run code analysis on each project based on project settings, change the <RunCodeAnalysis> tag to Default.

Additional Resources

  • For more information about automatic code analysis as part of the build, see “How To – Automatically Run Code Analysis with Team Build in Visual Studio Team Foundation Server” in this guide.
  • For more information about code analysis tools, see “Guidelines for Using Code Analysis Tools” at http://msdn2.microsoft.com/en-us/library/ms182023(VS.80).aspx

Last edited Jul 26, 2007 at 6:58 AM by prashantbansode, version 1

Comments

No comments yet.