Do I have to set debug = "false" in my ASP.NET web application before using the Publish Website feature in VS 2005?

Basically, I am wondering if I need to set debug = "false" before clicking the "Publish Website" button or if I can switch it after publishing all the files.

+3
source share
6 answers

You do not need to disable this setting, however you need to set debug = "false" before starting the website as a production application. This will have a profound effect on the performance of your site.

+4
source

, , . .
, , - retail = "true" .

+2

/, true, false, ( ASP.NET).

:

, :

1) ASP.NET ( )

2) ( )

3)

4) , WebResources.axd,

+1

retail = "true" machine.config. , debug false . .

0

, . , true, , , ( ). , "true", false .

, , true. , , . Dror , .

0

, . msbuild, !

, , , . , , .

msbuild <yourProjectFile>.csproj 
    /target:"ResolveReferences;_CopyWebApplication"
    /properties:"debug=false;
                 retail=true;
                 WebProjectOutputDir = <YourCorrectOutputDir>;
                 OutDir = <YourCorrectOutputDir>\bin\"

The time we spent in our time investing in fairly extensive build scripts that even run several basic HTTP regets against the site after we finished creating and publishing it reduced a huge amount of disappointment.

I, as much as possible, are sure that the machines will automate, the cars do not seem to forget to do the same as me: D

Hope this helps cheers rihan

0
source

All Articles