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.

3. Add the following section just before the closing <br />

element in TFSBuild.proj:<br />

<br />

true<br />

true<br />

false<br />

<br />

These settings accomplish the following:<br />

• SkipClean. Setting SkipClean to true ensures that the build will not clean out the<br />

local build and sources folder.<br />

• SkipInitializeWorkspace. Setting SkipInitializeWorkspace to true ensures that the<br />

build will leave the existing workspace in-place for the build machine.<br />

• ForceGet. Setting ForceGet to false ensures that the build will only get updated<br />

source, rather than getting all source for the workspace.<br />

Additional Resources<br />

• For more information, see “Practices at a Glance – <strong>Team</strong> Build” in this guide.<br />

• For more information about configuring an incremental build, see “How to:<br />

Configure <strong>Team</strong> <strong>Foundation</strong> Build for an Incremental Build” at<br />

http://msdn2.microsoft.com/en-us/library/aa833876(VS.80).aspx<br />

Avoid Synchronizing Redundant Folders in Your Build<br />

You should scale down your workspace mapping or cloak folders that are not needed as<br />

part of the build.<br />

When you execute a <strong>Team</strong> Build, the server retrieves all of the files it needs from source<br />

control. The files that are retrieved are defined by the workspace that is used to create the<br />

<strong>Team</strong> Build Type. Some of the files that are mapped into the workspace may not be<br />

needed. You can change your workspace definition to reduce the folders included, or you<br />

can cloak unnecessary files so that they are not retrieved as part of the build.<br />

For example, the default mapping for a new project is $/<strong>Team</strong>Project. If all your source<br />

files are under $/<strong>Team</strong>Project/foo/bar/foobar/sources, you should map only that directory.<br />

To cloak files beneath your workspace mapping, you can edit the<br />

WorkspaceMapping.xml file that is created when the <strong>Team</strong> Build Type is created and is<br />

used to define the folders that are retrieved when performing the build. You can cloak<br />

files and folders that are not needed as part of the build. Folder cloaking is preferred<br />

because individual file cloaking can introduce maintenance overhead.<br />

To cloak folders<br />

1. Check out WorkspaceMapping.xml from source control.<br />

2. Add the appropriate cloak entries to this file.

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

Saved successfully!

Ooh no, something went wrong!