Painy James
Painy James

Reputation: 824

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?

Upvotes: 5

Views: 9364

Answers (2)

vml19
vml19

Reputation: 3864

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

Upvotes: 3

Habib
Habib

Reputation: 223332

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.

Upvotes: 10

Related Questions