views:

1179

answers:

2

Say I want to create vb.net application in Visual studio 2005. What is the difference between File->New->Project vs File->New->Web Site?

EDIT

I am aware that when using New->Project there are many more options available but if one wants to create just .net web application, would it make a any difference what option you choose?

+2  A: 

If you create a project, all cs files in your project will be compiled into one DLL. Instead, if you choose to create a website, all your app_code will be compiled and cached on the fly.

jdecuyper
+3  A: 

Here's a good link about WAPs (web application projects) and the differences between WAPs and website projects.

In 2003, your only option (if I recall correctly) was the WAP. 2005 introduced the concept of website projects, where all your code is uploaded to the server and compiled into DLLs on first access. This allows you to easily change your code without having to compile and publish the dlls.

Not a lot of people liked this new way of doing it, so MS created an update to allow for 2003 style WAPs in 2005. 2008 retains both options.

The File->New->Web site option is the only way to create a website application (or, at least it is in 2k8). The only way to create a WAP is to do File->New Project->Web->...

Will
Thanks Will, that is very informative
kristof
np. I prefer WAPs myself.
Will