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.

Summary of Steps<br />

• Step 1 – Create Local Folders for Your Windows Forms Project<br />

• Step 2 – Create a Blank Solution<br />

• Step 3 – Add a Windows Forms Project to Your Solution<br />

• Step 4 – Add a Control Library (Optional)<br />

• Step 5 – Add a Class Library (Optional)<br />

• Step 6 – Check Your Solution Structure<br />

• Step 7 – Check Your Local Folder Structure<br />

• Step 8 – Add Your Solution to Source Control<br />

Step 1 – Create Local Folders for Your Windows Forms Project<br />

In this step, you create an appropriate local folder structure for your Windows Forms<br />

project on your development computer. To ensure a consistent approach for your team<br />

development and to keep team projects well organized on your development computer,<br />

you should keep your entire development source from all of the team projects you are<br />

working on grouped together beneath a single root folder such as C:\DevProjects.<br />

Create a top-level folder such as C:\DevProjects.<br />

Step 2 – Create a Blank Solution<br />

To create a Windows Forms application, start by explicitly creating a <strong>Visual</strong> <strong>Studio</strong><br />

Solution (.sln) file and then add your Windows Forms project and any supplementary<br />

projects you might need, such as class or control libraries. In the following steps, you<br />

create your solutions beneath a top-level C:\DevProjects directory.<br />

1. On the File menu, point to New and then click Project.<br />

2. Expand Other Project Types and then select <strong>Visual</strong> <strong>Studio</strong> Solutions.<br />

3. Select Blank Solution.<br />

4. Name your solution MyApp.<br />

5. Set the Location to C:\DevProjects and then click OK.<br />

This creates a C:\DevProjects\MyApp folder. <strong>Visual</strong> <strong>Studio</strong> adds the solution (.sln) file<br />

and solution user options (.suo) file to this folder. Note that only the .sln file is<br />

subsequently added to source control in Step 8.<br />

Step 3 – Add a Windows Forms Project to Your Solution<br />

In this step, you add a new Windows Forms project to your solution.<br />

1. In Solution Explorer, right-click Solution MyApp, point to Add, and then click<br />

New Project….<br />

2. In the Add New Project dialog box, select <strong>Visual</strong> C# as the project type and<br />

Windows Application as the template.<br />

3. Set the Location to C:\DevProjects\MyApp\Source directory.<br />

4. Name your project as MyWinFormApp.

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

Saved successfully!

Ooh no, something went wrong!