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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

you average a check-in every 5 minutes, you could set a check-in interval of two checkins<br />

and a timeout period of 10 minutes. This helps to ensure that the build is complete<br />

before the next build is started. If you notice excessive load on your build server, you can<br />

increase these values.<br />

Additional Resources<br />

• For more information, see “Chapter 8 – Setting Up a Continuous Integration Build<br />

<strong>with</strong> <strong>Team</strong> Build” in this guide.<br />

Customization<br />

• How to modify the build number<br />

• How to set up workspace mapping to get and build a subset of the tree<br />

• How to build a project <strong>with</strong> dependencies on another team project<br />

• How to change the build configuration (release/debug)<br />

How to Modify the Build Number<br />

In order to customize the build number in your compiled assemblies, you need to<br />

generate the replacement build number and then write it to the assemblyinfo source file.<br />

In order to customize the build number property displayed in the <strong>Team</strong> Build interface,<br />

you need to override the $(BuildNumber) property in the BuildNumberOverride target.<br />

To customize the build number in both the assembly and in the <strong>Team</strong> Build<br />

interface<br />

1. Override the $(BuildNumber) in the BuildNumberOverride target.<br />

2. Override the BeforeCompile target to write the AssemblyInfo.cs or .vb file.<br />

Example<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!