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.

Additional Resources<br />

• For more information about cloaking folders in a workspace, see “How to: Cloak and<br />

Decloak Folders in a Workspace” at http://msdn2.microsoft.com/enus/library/ms181378(VS.80).aspx<br />

• For more information about making <strong>Team</strong> Build ignore folders, see “How to make<br />

‘<strong>Team</strong> Build’ skip getting certain folders?” at<br />

http://blogs.msdn.com/manishagarwal/archive/2005/10/13/480584.aspx<br />

• For more information about the WorkspaceMapping schema, see “Schema for the<br />

WorkspaceMapping.xml file” at<br />

http://blogs.msdn.com/buckh/archive/2007/02/28/schema-for-the-workspacemappingxml-file.aspx<br />

How to Build a Project <strong>with</strong> Dependencies on Another <strong>Team</strong> Project<br />

<strong>Team</strong> Build does not support building solutions that cross team projects. To enable this,<br />

you must customize the TFSBuild.proj file to check out the code you need from the other<br />

projects on which your build depends.<br />

To build a project <strong>with</strong> dependencies on another team project, you need to get the source<br />

or assemblies from that project into the workspace on your build server. To do this, you<br />

need to edit your TFSBuild.proj file to add the assembly or the solution reference and<br />

override the BeforeGet event to get assemblies or sources from each of the team projects<br />

on which you have a dependency.<br />

To build a project that has dependencies on another team project<br />

1. Check out the TFSBuild.proj script from Source Control Explorer.<br />

2. Add the following configuration setting under the PropertyGroup section:<br />

<br />

$(<strong>Team</strong>BuildRefPath)\..\tf.exe<br />

true<br />

SkipInitializeWorkSpace allows you to skip invoking the default tasks to delete and<br />

re-create the workspace on the build machine. The new property is used in the custom<br />

target BeforeGet (see below).<br />

3. Add the following configuration setting to the ItemGroup entries that map both the<br />

<strong>Team</strong> Projects and the solutions. Make sure that you provide the correct local paths<br />

for the build machine. Multiple mappings cannot share the same local folder and will<br />

result in a MappingConflictException exception in the CreateWorkspace task.<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!