ASP.NET Web Site or ASP.NET Web Application?

前端 未结 25 2390
自闭症患者
自闭症患者 2020-11-21 08:26

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.

What is the difference between ASP.

25条回答
  •  故里飘歌
    2020-11-21 08:40

    From the MCTS self paced training kit exam 70-515 book:

    With web application (project),

    1. You can create an MVC application.
    2. Visual Studio stores the list of files in a project file (.csproj or .vbproj), rather than relying on the folder structure.
    3. You cannot mix Visual Basic and C#.
    4. You cannot edit code without stopping a debugging session.
    5. You can establish dependencies between multiple web projects.
    6. You must compile the application before deployment, which prevents you from testing a page if another page will not compile.
    7. You do not have to store the source code on the server.
    8. You can control the assembly name and version.
    9. You cannot edit individual files after deployment without recompiling.

提交回复
热议问题