Domanda

Possible Duplicate:
ASP.NET: Web Site or Web Application?
Difference between 'Web Site' and 'Project' in Visual Studio

In Visual Studio 2010 what is the difference between a web site (created using File->New->Web Site) and any of the numerous web application projects?

È stato utile?

Soluzione

MSDN covers Web Application Projects versus Web Site Projects in their documentation.

It highlights the differences between web app and web site projects such as:

  • Web app projects store info about a project into a project file. Web site projects do not have a project file.
  • Web app projects compiles a single assembly. Web site projects compile multiple assemblies (by default).
  • Namespaces are added to pages, classes, and controls by default in web apps. This is not the case for web sites, although you can add namespaces to pages, classes, and manually.
  • "Visual Studio provides tools for [web site project] deployment, but they do not automate as many deployment tasks as the tools available for Web application projects."
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top