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.

2. In the Add Solution MyApp to Source Control dialog box, choose your team<br />

project.<br />

3. In the dialog box, click Make New Folder and then name the new folder as Main.<br />

4. Select the newly created Main folder, click Make New Folder, and then name the<br />

new folder as Source.<br />

5. Select the newly created Source folder and then click OK.<br />

6. Check your source control folder structure by double-clicking Source Control <strong>with</strong>in<br />

the <strong>Team</strong> Explorer. This displays Source Control Explorer. Your structure should<br />

resemble the following:<br />

7. At this point you can view pending changes and check your source files into the<br />

server. To do so, on the View Menu, point to Other Windows and then click<br />

Pending Changes. Select your project and the source files to be checked-in, supply a<br />

check-in comment, and then click Check In.<br />

Shared Code Considerations<br />

For Windows Forms applications that reference shared source code, you can consider the<br />

following two main options:<br />

• Reference the code from a shared location<br />

• Branch the shared code<br />

Reference the Code from a Shared Location<br />

With this approach, you map the source from a shared location such as another team<br />

project into the workspace on your development computer. This creates a configuration<br />

that unifies the shared source from the shared location <strong>with</strong> your project code on your<br />

development computer.<br />

The advantage of this approach is that any changes to the shared source are picked up<br />

every time you retrieve the latest version of the source into your workspace. For example<br />

consider a team project named Common that contains the shared source. To reference the

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

Saved successfully!

Ooh no, something went wrong!