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 Web Project<br />

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

• Step 3 – Add a Web Site to Your Solution<br />

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

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

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

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

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

In this step, you create an appropriate local folder structure for your Web project on your<br />

development computer. To ensure a consistent approach for your team development, and<br />

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

your entire development source from all of the team projects you are working on grouped<br />

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 an ASP.NET Web Application, start by explicitly creating a <strong>Visual</strong> <strong>Studio</strong><br />

Solution (.sln) file and then add your Web site and any supplementary projects you might<br />

need, such as class libraries. In the following steps, you create your solutions beneath a<br />

top level C:\DevProjects folder<br />

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

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

3. Select Blank Solution.<br />

4. Name your solution MyWebAppSln.<br />

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

This creates a C:\DevProjects\MyWebAppSln folder. <strong>Visual</strong> <strong>Studio</strong> adds the solution<br />

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

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

Step 3 – Add a Web Site to Your Solution<br />

In this step, you add an ASP.NET Web site to your solution. The way you do this varies<br />

slightly depending on whether you are creating a new file system–based Web site that<br />

uses the <strong>Visual</strong> <strong>Studio</strong> development Web server or a Hyper Text Transfer Protocol<br />

(HTTP) Web site that uses Internet Information Services (IIS).<br />

File System<br />

To add a file system–based Web project to your solution:

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

Saved successfully!

Ooh no, something went wrong!