Tuesday, March 13, 2012

setting to release mode

The docs I have address two ways to set a .net web project to release mode:
- set to Release in vs.net dropdown
- set debug=false in the web.config
Why two ways? What's the dif? Are both required? What does each do?
TIA,
G"G. Dean Blake" <Dean@.nospam.com> wrote in message
news:u28Lmg$cEHA.3892@.TK2MSFTNGP11.phx.gbl...
> The docs I have address two ways to set a .net web project to release
mode:
> - set to Release in vs.net dropdown
> - set debug=false in the web.config
> Why two ways? What's the dif? Are both required? What does each do?
Setting "Release" is what you should use to set to release mode. Setting
debug=false simply turns off debugging. That may not be the only difference
between the Release and Debug configurations, so you should use the Release
configuration if that's what you want.
--
John Saunders
johnwsaundersiii at hotmail
On Tue, 27 Jul 2004 17:49:55 -0400, "John Saunders"
<johnwsaundersiii@.notcoldmail.com> wrote:

>"G. Dean Blake" <Dean@.nospam.com> wrote in message
<snip>

>Setting "Release" is what you should use to set to release mode. Setting
>debug=false simply turns off debugging. That may not be the only difference
>between the Release and Debug configurations, so you should use the Release
>configuration if that's what you want.
Setting debug="false" should be done in addition to a release mode
build in VS.NET. When debug is enabled pages do not batch compile,
pages do not timeout, debug symbols are generated, and some
optimizations are disabled. The result will be a relative performance
hit.
Scott
http://www.OdeToCode.com

0 comments:

Post a Comment