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.

Chapter 4 - Structuring Projects and Solutions in <strong>Team</strong><br />

<strong>Foundation</strong> Source Control<br />

Objectives<br />

• Structure projects for effective team development in Microsoft® <strong>Visual</strong> <strong>Studio</strong>®<br />

<strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> (TFS) source control.<br />

• Keep server-side and client-side folder structures synchronized.<br />

• Choose a strategy for unit test structure.<br />

• Create a folder structure that supports various branching scenarios.<br />

• Learn what a workspace is and how it maps local files to source control.<br />

• Understand what files are added to source control.<br />

Overview<br />

Many of the default folder conventions used by <strong>Visual</strong> <strong>Studio</strong> when creating new<br />

solutions and projects are not optimized for team development and for use <strong>with</strong> TFS<br />

source control. Rather than accepting the defaults when you create new <strong>Visual</strong> <strong>Studio</strong><br />

projects and solutions, you should give careful consideration to your local and serverbased<br />

folder structure.<br />

This chapter starts by explaining how you should structure solutions and projects on your<br />

development computer (the client-side) and how you should structure your folders <strong>with</strong>in<br />

TFS source control (the server-side). It provides example folder structures for a variety of<br />

application types including Microsoft Windows® Forms, smart clients, and Web<br />

applications. The chapter then explains how workspaces are used to manage the<br />

mappings between client and server folder structures.<br />

How to Use This Chapter<br />

Use this chapter to learn about sample folder structures suitable for team development<br />

projects of various sizes and complexity. To gain the greatest benefits from this chapter,<br />

you should:<br />

• Use the server-side structure suggestions. Use the suggested server-side folder<br />

structures to organize your project source code <strong>with</strong>in TFS source control.<br />

• Use the client-side structure suggestions. Use the suggested client-side folder<br />

structures to organize your project source code in your local development<br />

workspace.<br />

• Read the companion How To articles. These articles provide a step-by-step<br />

walkthroughs of some of the processes discussed in this chapter:<br />

• How To: Create Your Source Tree in <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>.<br />

• How To: Structure ASP.NET Applications in <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>.<br />

• How To: Structure Windows Applications in <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>.<br />

• How To: Structure Your Source Control Folders in <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>.

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

Saved successfully!

Ooh no, something went wrong!