26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How To: Automatically Run Code Analysis <strong>with</strong> <strong>Team</strong> Build in<br />

<strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong><br />

Applies To<br />

• Microsoft® <strong>Visual</strong> <strong>Studio</strong>® 2005 <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> (TFS)<br />

• Microsoft <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> System<br />

Summary<br />

This How To article walks you through the process of configuring <strong>Team</strong> Build to include<br />

code analysis as a build step. This will automatically run code analysis as part of your<br />

team build and will report the results of the analysis in the build results.<br />

Contents<br />

• Objective<br />

• Overview<br />

• Summary of Steps<br />

• Before You Begin<br />

• Step 1 – Test the Build<br />

• Step 2 – Turn On Code Analysis for the Build<br />

• Step 3 – Test Code Analysis<br />

• Additional Resources<br />

Objective<br />

• Run code analysis as part of the build in order to validate code quality.<br />

Overview<br />

<strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> System <strong>Team</strong> Build allows you to define build types for your project<br />

that enable a build server to compile your application and make it available on a network<br />

share. You can turn on code analysis for the team build so that each build automatically<br />

performs code analysis and reports the results to the build results report page. This How<br />

To article walks you through the process of configuring <strong>Team</strong> Build to include code<br />

analysis as a build step.<br />

Summary of Steps<br />

• Step 1 – Test the Build<br />

• Step 2 – Turn Code Analysis on for the Build<br />

• Step 3 – Test Code Analysis<br />

Before You Begin<br />

Before you can turn on code analysis for <strong>Team</strong> Build, you must ensure you have the<br />

following pre-requisites in place:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!