Where's the “Allow this precompiled site to be

2019-04-11 14:25发布

I need to do this but one step leads me to uncheck the "Allow this precompiled site to be updatable" option, but I don't see that in the publish website dialog on Visual Studio 2010.

Does anyone know how can I do that on Visual Studio 2010?

2条回答
叼着烟拽天下
2楼-- · 2019-04-11 14:49

For ASP.Net Web Applications

  1. Web application Properties
  2. Package/Publish Web
  3. Tick precompile this application before publishing
  4. Go to Advanced option
  5. Select Do not merge. Create a separate assembly for each page and control
查看更多
相关推荐>>
3楼-- · 2019-04-11 14:55

This option is available for ASP.Net Web Site projects not ASP.Net Web Applications. Right click on the solution explorer and select Add New Web Site...against that you will get that checkbox

Check out this Web Application Projects versus Web Site Projects, Under Summary of Differences, you will see:

Compilation:

Web application projects

  1. You explicitly compile the source code on the computer that is used for development or source control.
  2. By default, compilation of code files (excluding .aspx and .ascx files) produces a single assembly.

Web site projects

  1. The source code is typically compiled dynamically (automatically) by ASP.NET on the server the first time a request is received after the site has been installed or updated.

  2. You can precompile the site (compile in advance on a development computer or on the server).

  3. By default, compilation produces multiple assemblies.

查看更多
登录 后发表回答