views:

289

answers:

2

Possible Duplicates:
website or webapplication in.ASP.NET
web application projects v.s. web site projects

What are the differences?

I can right click on a solution and say

Add New Website...

or

Add New Project... > Web > ASP.NET Web Application

Is one preferred over the other in terms of best practices or extensibility/performance/etc.?

Any resource links would be great, as I can't find them.

+1  A: 

I'm sure you'll get a lot of answers here - but from past experience working with both, I prefer Web Site Projects for 2 reasons:

  • NO designer files to mess with. I don't know how many times I've had those get out of sync, and once they do, its a real pain to put things back into working order.
  • Better PUBLISH functionality. I prefer to fully compile my apps, and the publish wizard makes this all much simpler than the web apps do.

Those 2 reasons above are the main reason I stick with web sites over web apps. There are probably plenty of other reasons why one or the other could be better - but between the 2 of those, web site projects let me spend much less time on making things work and more time coding.

Scott Ivey
I concur, Web Site is less hassle, unless you really need to pre-compile or something
Dan Diplo
A: 

did you tried to search before post this question?

as an example:

web application projects v.s. web site projects

website or webapplication in.ASP.NET

balexandre
Yes I did - on Google, but not in the SO search box. I usually go straight to Ask, type my title, then look through the suggested duplicates that pop up. For some reason, the results are not the same as the search. Thanks.
Jeff Meatball Yang