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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Where do you want to store the source?<br />

2. How do you want your team to access the shared source?<br />

The following options are available for storing the source:<br />

• If the shared source is clearly owned by a particular team, store it in their team<br />

project.<br />

• If the shared source has no clear ownership, create a team project specifically for the<br />

shared code.<br />

If you want to use the source in another project, choose one of the following two options:<br />

• If you need to stay in sync <strong>with</strong> shared code at all times, map the source from the<br />

shared location into the local workspace on the client machines.<br />

• If you only need to stay in sync periodically, branch from the shared location into the<br />

consuming team project. Every time you perform a merge from the shared location to<br />

the consuming project, you will pick up latest source.<br />

Whether you use workspace mapping or branching, use naming conventions that make it<br />

clear where the shared source location is located in your project; for example:<br />

• Main – Container for all assets you need in order to ship the product<br />

o Source – Container for everything you need in order to build<br />

• Code – Container for source code<br />

• Shared Code – Container for source code that is shared from other<br />

projects<br />

• Unit Tests – Container for unit tests<br />

• Lib – Container for binary dependencies<br />

o Docs – Container for documentation that will ship <strong>with</strong> the product<br />

o Installer – Container for installer source code and binaries<br />

o Builds – Container for team build scripts<br />

o Tests – Container for test team test cases<br />

Additional Resources<br />

• For more information about project references, see “Project References” at<br />

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

• For more information about branching, see “How to: Branch Files and Folders” at<br />

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

• For more information about workspaces, see http://msdn2.microsoft.com/enus/library/ms181383(VS.80).aspx<br />

How should I manage binaries that are shared across multiple projects?<br />

Managing shared binaries is similar to managing shared source―you must decide where<br />

you want to store the binaries and how you want your team to access the binaries.<br />

The following options are available for storing the binaries:<br />

• If the shared binaries are clearly owned by a particular team, store it in their team<br />

project.

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

Saved successfully!

Ooh no, something went wrong!