What is the difference between ASP.NET Web Site and Web Application in Visual Studio?

2

I need to do a project in asp.net with web forms , I'm really new in asp.net and when creating the project I have seen tutorials in which they use the two variants or create a WebSite or create a WebApplication . I would like to know what is the difference to know which one is the best for me. Thanks.

    
asked by Mr.K 29.07.2017 в 16:30
source

1 answer

2

Web Site is a type of independent project unrelated to Visual Studio. In other words, if you rename a file that has reference in another file, that reference will not be updated. For example, reference to a class in a view. If you rename the class, it will not update in your view. To put it this way, Visual Studio has no control over it.

While Web Application is a special type of Visual Studio project where you are aware of the changes you make to the files. If you rename a class, it will be updated in all the places where Visual Studio has reference to it. This makes it easier to manage. This type of project also, unlike WebSite, compiles all the code into a single dll which makes it more organized than the WebSite and less heavy.

    
answered by 29.07.2017 / 16:41
source