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

- 56,416
- 14
- 107
- 150

- 17,809
- 26
- 66
- 92
-
There is a similar question here thats already answered: http://stackoverflow.com/questions/43019/what-does-vs-2008s-convert-to-website-mean Hope it helps – Ramiro Berrelleza Dec 01 '08 at 19:20
3 Answers
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

- 14,094
- 8
- 53
- 74
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.

- 24,971
- 33
- 103
- 152
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).

- 31,133
- 17
- 86
- 125
-
VS2003 had a web application, whereas they broked it in VS2005 before bringing it back in SP1. It's really a throwback to the "classic" days... *shudder* – GalacticCowboy Dec 01 '08 at 20:14
-
You're right actually... It does feel more like Classic. *sympathy shudder* – Brian MacKay Dec 01 '08 at 23:05