Udostępnij za pośrednictwem


How to: Create New Web Application Projects

You can create ASP.NET Web application projects using Visual Studio or Visual Web Developer Express. The Web application project type is an alternative to the Web site project. It uses a build model that creates a single assembly for the whole project. For more information, see Web Application Projects versus Web Site Projects in Visual Studio.

To create a new Web application project

  1. In Visual Studio or Visual Web Developer Express, in the File menu, click New Project (do not click New Web Site).

  2. In the New Project dialog box, if the version of the .NET Framework that you want to target is not selected, select the version that you want to target.

    New Project Dialog Box

    You must select a .NET Framework version before you select a template, because the .NET Framework version that you select determines which templates are available.

    Note

    In order to target any version of the .NET Framework earlier than version 4, you must have the .NET Framework 3.5 installed.

  3. Under Installed Templates in the New Project dialog box, expand Visual Basic or Visual C#, and then click Web to display available Web templates.

  4. Select the ASP.NET Web Application template.

  5. In the Name box, enter the name of the new application.

  6. In the Location box, enter the name of the folder in which you want to store the pages of the Web application. Alternatively, click Browse to select a location.

  7. If you have a solution open and you want to add the new project to the open solution, select Add to solution in the Solution box.

  8. If you are creating a new solution, enter a name in the Solution Name box.

  9. Click OK.

    Visual Studio or Visual Web Developer Express creates the Web application project in the specified location.

See Also

Reference

Web Tab, Project Properties

Concepts

.NET Framework Multi-Targeting for ASP.NET Web Projects

Other Resources

ASP.NET Web Projects

ASP.NET Web Application Projects