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.

• The TFSBuild.rsp file contains command-line options for MSBuild. You can modify<br />

this file to further customize the build.<br />

• Event notification enables custom build steps or notifications through the<br />

BuildStatusChangeEvent and BuildCompletionEvent events.<br />

• <strong>Team</strong> Build integrates <strong>with</strong> work items, code coverage, code analysis, and test cases.<br />

How <strong>Team</strong> Build Works<br />

<strong>Team</strong> Build consists of the <strong>Team</strong> Build Service layered on top of the MSBuild build<br />

system. MSBuild is responsible for the build itself, while the <strong>Team</strong> Build Service is<br />

responsible for communicating <strong>with</strong> the TFS application-tier. <strong>Team</strong> Builds are created<br />

from the <strong>Visual</strong> <strong>Studio</strong> client and you can start them from the client, by an event on the<br />

build server, or from the command-line, for example as a scheduled task. Once started,<br />

the build process consists of the following steps:<br />

1. Get sources from source control into the build directory.<br />

2. Compile the source and generate binaries.<br />

3. Run code analysis (Optional).<br />

4. Create a work item if there is a build failure.<br />

5. Run tests (Optional).<br />

6. Calculate code coverage (Optional).<br />

7. Log build details.<br />

8. Copy the build to the drop location.<br />

After the build is complete, the following are available:<br />

Build details. You can view details from any client or from reports.<br />

Build binaries. Binaries are placed in the drop location.<br />

Build Log. You can review the log for errors and warnings.<br />

Work item. If the build fails, a work item is created to track the build break.<br />

How to Determine Your Build Strategy<br />

Use the following steps to determine your build strategy:<br />

1. Consider your build consumers.<br />

2. Review solution scenarios.<br />

3. Understand common stumbling blocks.<br />

Consider Your Build Consumers<br />

Most development teams have one or more of the following build consumers:<br />

• <strong>Development</strong> team.<br />

• Test team.<br />

• Internal build adopters.<br />

• External beta adopters.

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

Saved successfully!

Ooh no, something went wrong!