I have been using website for website development before, but I have heard that the best webapplication is used for projects at work. Both of them can be used for web development.ProgramBut I still cannot tell the difference between them. I checked the blog and found a piece of "sashboard ".ArticleThe analysis is good. The content is as follows:
1. Intuitive difference: For each ASPX page file, webapplication adds a designer. CS file to the corresponding CS file.
2. Advantages and Disadvantages:
advantages of the webapplication programming model:
● The website Compilation speed is fast, and the incremental compilation mode is used. This part will be incrementally compiled only after the file is modified.
● generated Assembly
Website: generate a random Assembly name. You must use the plug-in webdeployment to generate a single assembly.
webapplication: You can specify a website project to generate a single assembly because it is an independent assembly, therefore, like other projects, you can specify the application Assembly name, version, output location, and other information
● You can split your website into multiple projects for convenient management. It is suitable for large-scale project development.
● A file can be excluded from the project and Source Code management
● support for vsts team build to facilitate daily building
● more powerful Code check function, the check policy is controlled by source code
● you can perform required processing before and after compilation
● strong resource class support for app_globalresources
● directly upgrade a large system built using vs2003
Advantages of the website programming model:
●Dynamically compile the page to see the effect immediately without compiling the entire site (main advantages)
● Same as above, which can make the error part irrelevant to the used part
● An assembly can be generated on each page.
● A directory can be processed as a web application, and files can be directly copied and published without project files
● You can also compile the page into a set of programs.
Conclusion: large websites (or projects) are more suitable for webapplication projects and small websites are more suitable for website projects.