Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where's the "Allow this precompiled site to be updatable" check in Visual Studio 2010?

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?

like image 582
Painy James Avatar asked Jun 22 '12 07:06

Painy James


People also ask

How to compile website in Visual Studio?

Open the Book Review WSP in Visual Studio, go to the Build menu, and select the Publish Web Site menu option. This launches the Publish Web Site dialog box (see Figure 1), where you can specify the target location, whether or not the precompiled site's user interface is updatable, and other compiler tool options.

Do ASPX CS files need to be compiled?

aspx. cs file) must first be compiled. This compilation can happen explicitly or automatically. If the compilation happens explicitly then the entire application's source code is compiled into one or more assemblies ( .

What is Precompile asp net?

Precompiling with Non-Updatable UIThe ASP.NET compilation tool can compile all the source code for an application into DLLs that are deployed in the application's Bin directory. This includes UI files, such as . aspx and . ascx files.


2 Answers

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.

like image 91
Habib Avatar answered Oct 20 '22 12:10

Habib


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
like image 29
vml19 Avatar answered Oct 20 '22 12:10

vml19