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.

Source Control Folder<br />

Local Folder<br />

$/My<strong>Team</strong>Project1/Main/Source/MyWebAppApp C:\DevProjects\MyWebAppSln<br />

$/My<strong>Team</strong>Project2/Main/Source/Common C:\DevProjects\Common<br />

For more information see “Working <strong>with</strong> multiple team projects in <strong>Team</strong> Build” at<br />

http://blogs.msdn.com/manishagarwal/archive/2005/12/22/506635.aspx<br />

Branch the Shared Code<br />

With this approach, you branch the shared code from the common team project into your<br />

team project. This also creates a configuration that unifies the source from the shared<br />

location and your project.<br />

The difference <strong>with</strong> this approach is that the shared source changes are picked up as part<br />

of a merge process between the branches. This makes the decision to pick up changes in<br />

the shared source much more explicit. You decide when to perform a merge to pick up<br />

latest changes.<br />

For example consider the team project named Common that contains shared source. To<br />

branch the code from this location:<br />

1. In Source Control Explorer, right-click the root folder of the Common team<br />

project.<br />

2. Click Branch…<br />

3. In the Branch dialog box, set the Target: to the root folder of the<br />

$/My<strong>Team</strong>Project1/Main/Source/ team project and then click OK.<br />

4. After the branch operation has completed do not forget to check-in the branched<br />

source code.<br />

Additional Resources<br />

• For more information on creating a workspace, see “How to: Create a Workspace” at<br />

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

• For more information on referencing assemblies in different team projects, see<br />

“Working <strong>with</strong> multiple team projects in <strong>Team</strong> Build” at<br />

http://blogs.msdn.com/manishagarwal/archive/2005/12/22/506635.aspx

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

Saved successfully!

Ooh no, something went wrong!