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.

Deployment<br />

• On larger teams, install the build services on a separate server.<br />

On Larger <strong>Team</strong>s, Install the Build Services on a Separate <strong>Server</strong><br />

Large <strong>Team</strong> Builds can take a long time and use up significant server resources. If you<br />

run your builds on your <strong>Team</strong> TFS server, this impacts the reliability, performance, and<br />

scalability of the server.<br />

To improve the performance of your build and reduce load on your application tier, it is<br />

recommended that you run builds on a dedicated build server.<br />

Additional Resources<br />

• To download the <strong>Team</strong> <strong>Foundation</strong> Installation Guide, or for more information about<br />

installing TFS and <strong>Team</strong> Build, go to<br />

http://www.microsoft.com/downloads/details.aspx?FamilyId=E54BF6FF-026B-<br />

43A4-ADE4-A690388F310E&displaylang=en<br />

Performance<br />

• Use incremental builds to improve performance.<br />

• Avoid synchronizing redundant folders in your build.<br />

• Use workspaces to avoid checking out unwanted files and projects when doing a<br />

<strong>Team</strong> Build<br />

• Consider using multiple build machines to improve performance.<br />

Use Incremental Builds to Improve Performance<br />

By default, <strong>Team</strong> Build cleans out the directory it uses to perform the build before it<br />

checks out the complete source code tree needed for the build. <strong>Team</strong> Build also removes<br />

and re-initializes the workspace used to check out the sources for the build. To improve<br />

performance, you can set <strong>Team</strong> Build to only get sources that have changed since the last<br />

<strong>Team</strong> Build.<br />

If the amount of source needed for a build is large and the build server is remote from the<br />

TFS server, the source code checkout could take a long time to execute. In such a case,<br />

you should consider using an incremental build. To perform the incremental build, you<br />

need to set several values in your TFSBuild.proj file should be true. You need to:<br />

• Stop <strong>Team</strong> Build from cleaning the local build folder and sources folder.<br />

• Stop <strong>Team</strong> Build from re-creating the workspace used for the build.<br />

• Configure the <strong>Team</strong> Build to only get the changed sources from source control.<br />

To perform an incremental build<br />

1. Create a new build type to represent the incremental build.<br />

2. Check out for edit the TFSBuild.proj file associated <strong>with</strong> the incremental build type<br />

you just created.

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

Saved successfully!

Ooh no, something went wrong!