Thursday, August 5, 2010

Creating a Web Site Project & Web Site Solution Files

Creating a Web Site Project

You can create a new Web site project directly from Visual Studio 2008. The basic steps for doing so are as follows:

1. In Visual Studio 2008, use the File menu to create a new Web site (File
Website). This launches the New Web Site dialog box.

2. Select the Web site type, location, and default programming language.

3. You might also wish to select the target framework for your project. New to Visual Studio 2008 is the ability to code against multiple versions of the Microsoft .NET Framework. You can choose among versions 2.0, 3.0, and 3.5.

4. Once defined, click OK to finish setting up your site

Web Site Solution Files

When a Web site is created, Visual Studio creates a solution file (.sln) and a hidden solution user options file (.suo). The solution file is a text file that contains information such as the following:

• A list of the projects that are to be loaded into Visual Studio 2008 to make up the entire solution.

• The target framework version for the solution.

• The default language for the solution.

By default, these files are created in the Documents\Visual Studio2008\Projects folder for Web sites.

No comments: