Do you avoid using Web Site Projects?
  v1.0 Posted at 17/11/2016 5:45 AM by Tiago Araujo

If you're creating new web apps in ASP.NET 2.0, do you still use Web Site projects? We strongly recommend using the new Web Application projects.

What's the difference between the two? There is a detailed comparison here, but to summarize:​​

  • Web Site projects have no project file and it creates multiples assemblies. (This result in a lot of annoying scenarios.)
  • Web Application projects have a physical project file and along with all other standalone classes within the project are compiled into a single assembly.

Please see our kb - How to upgrade VS 2005 Web Site Projects to be VS 2005 Web Application Projects? to do the upgrade. ​​

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: