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.

<strong>Server</strong>-Side Structure<br />

Most team projects contain one or more <strong>Visual</strong> <strong>Studio</strong> solutions, each of which contains<br />

one or more <strong>Visual</strong> <strong>Studio</strong> projects. When you require branching to support isolated<br />

development paths, you use a root level folder named Main (on both client and server) to<br />

group together your <strong>Visual</strong> <strong>Studio</strong> projects. The following is a sample folder structure<br />

<strong>with</strong>in TFS source control:<br />

$My<strong>Team</strong>Project1<br />

/Main<br />

Can contain solution (.sln) files<br />

/Source<br />

/MyApp1<br />

Contains MyApp1.sln file<br />

/Source<br />

Contain folder for all source<br />

/ClassLibrary1 Contains ClassLibrary1.csproj<br />

/MyApp1Web<br />

Contains Default.aspx<br />

/UnitTests<br />

Container folder for unit tests<br />

/ClassLibrary1Tests Contains test project and code<br />

/MyApp1WebTests Contains test project and code<br />

/SharedBinaries<br />

Shared binaries e.g. libraries<br />

/SharedSource<br />

Shared source code<br />

/Docs<br />

Contains product documentation<br />

/Tests<br />

Container for tests<br />

/FunctionalTests<br />

/PerformanceTests<br />

/SecurityTests<br />

/<strong>Team</strong>BuildTypes<br />

Created automatically by <strong>Team</strong><br />

Build.<br />

/BuildType1<br />

/BuildType2<br />

Main is a container folder for the source files and other related artifacts such as build<br />

output, design documentation, and test cases. An application folder (such as MyApp1 in<br />

the preceding example) contains the <strong>Visual</strong> <strong>Studio</strong> solution (.sln) file used to group<br />

together a related set of <strong>Visual</strong> <strong>Studio</strong> projects. Each project file (.vcproj or .vbproj) is<br />

contained in a dedicated project folder, located beneath /Main/Source/MyApp1/Source.<br />

Unit tests that accompany each source project are located beneath the UnitTests folder.<br />

You can place additional <strong>Visual</strong> <strong>Studio</strong> solution (.sln) files in the Main folder to allow<br />

you to work <strong>with</strong> multiple different groupings of projects.<br />

The Docs and Test folders are used to hold additional artifacts associated <strong>with</strong> the team<br />

project including product documentation and automated tests.<br />

The <strong>Team</strong>BuildTypes folder is automatically created for you when you generate your<br />

first <strong>Team</strong> Build. If you want to manually check in a team build type you can create this<br />

folder by hand, add your <strong>Team</strong> Build files, and TFS recognizes this folder for you<br />

automatically.

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

Saved successfully!

Ooh no, something went wrong!