setting to release mode

G

G. Dean Blake

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
 
J

John Saunders

G. Dean Blake said:
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.
 
S

Scott Allen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top