Developer
Developer

Reputation: 18659

Project Types in ASP.NET

How do I create a Web Application Project in VS 2008? How is it different from a "WebSite" project?

Upvotes: 1

Views: 1362

Answers (3)

Brian MacKay
Brian MacKay

Reputation: 32019

People have adequately identified many differences, but let me add this broader stroke:

Web Application Projects are architecturally consistant with the other project types in .Net, whereas WebSites deviate and really seem like a throwback to the VS 2003 days.

For this reason, my opinion is that WAP's are more elegant (especially when you have more than one project in a solution).

Upvotes: 0

Valentin V
Valentin V

Reputation: 25729

The main difference is that Web application uses .csproj file which holds the information about all the files in the project. What difference does it make? Using web site model you can add new files without visual studio, since adding new files doesn't require csproj file modifications, but using Web application model you can not. I personally prefer Web application type.

Upvotes: 0

keithwarren7
keithwarren7

Reputation: 14280

File--New--Project

instead of File--New--Web Site

It acts as a different container all together and the compile model is different.

ScottGu provided some details when they were first launched: http://weblogs.asp.net/scottgu/archive/2006/05/08/445742.aspx

Upvotes: 1

Related Questions