Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between 'Web Site' and 'Project' in Visual Studio [duplicate]

Possible Duplicate:
ASP.NET: Web Site or Web Application?

I have noticed that there is clearly a difference in what you get when you fire up Visual Studio 2008 and choose 'New Project' -> 'ASP.NET Web Application' instead of 'New Web Site' -> 'ASP.NET Web Site'. For example if you choose 'Project', then you can compile to .dll and each page gets a *.aspx.designer.cs codebehind file.

1) Why do we have these two different project types?

2) Which do you prefer?

3) Why would I choose one over the other?

4) What's the deal with the *.aspx.designer.cs files?

like image 699
Gudmundur Orn Avatar asked Feb 26 '09 13:02

Gudmundur Orn


People also ask

What is difference between solution and project in Visual Studio?

A project is contained within a solution. Despite its name, a solution is not an "answer". It's simply a container for one or more related projects, along with build information, Visual Studio window settings, and any miscellaneous files that aren't associated with a particular project.

What is the difference between web based application and window based application?

A web application can be accessed from any system through the internet. You need an Internet Information Services (IIS) server to run the web application. Windows application can directly be executed on a Windows operating system. Windows applications can only be run on a windows platform.

What's the difference between website and app?

An app, or software application, isn't directly accessible on the internet. Rather, it must be downloaded on a smartphone or tablet. Mobile websites are responsive sites that automatically scale to fit the screen size of your viewer's device.


1 Answers

They have different purposes.

A website is a site with content that is likely to change over time, that is the pages themselves will change. There is no actual project file and the site is deployed simply as a set of files.

An application is a site where the content is just the application, the dynamic part will mainly be in persistant store such as a database. It will have more complex logic since its likely to represent a set of forms for data entry as much as a means to examine content. It has a project file to more strictly control its configuration and its code deployed as a compiled dll.

like image 116
AnthonyWJones Avatar answered Sep 28 '22 07:09

AnthonyWJones