How to set for debug/release

J

Joe Befumo

When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A pointer would be appreciated. Thanks.

Joe
 
E

Eliyahu Goldin

Right-click your solution in the solution explorer and select the Configuration Manager. You should also see a dropdown list with word Debug on your standard toolbar.

Eliyahu

When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A pointer would be appreciated. Thanks.

Joe
 
J

Juan T. Llibre

Eliyahu,

In VS 2003, that choice is available. In VS 2005, it's not.




Right-click your solution in the solution explorer and select the Configuration Manager. You should
also see a dropdown list with word Debug on your standard toolbar.

Eliyahu

When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to
enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A
pointer would be appreciated. Thanks.

Joe
 
J

Juan T. Llibre

I should have added that, in ASP.NET 2.0, the debug/erelease
choice is set via the web.config file for the application :

<compilation debug = "false">
or
<compilation debug = "true">

The default is "false".
 
E

Eliyahu Goldin

Juan,

In my VS2005 it is there. I have a Team Edition for Software Developers.

Eliyahu
 
E

Eliyahu Goldin

Juan,

The setting in web.config affects compiling .aspx files deployed on the
server. It doesn't affect assembly dlls produced in a development
environment and deployed to the server as binaries.

Eliyahu
 
J

Juan T. Llibre

I'm afraid not, Eliyahu.
Where did you read that it only applies to *.aspx files ?

See : http://msdn2.microsoft.com/en-us/library/2fdbs127.aspx

That page explains that the *Build* configuration option which controls
whether the compilation will generate debugging information is moved
to web.config for VB.NET, C# and J#.

I don't see any exceptions there.

Additionally, that page makes clear that "If a project contains multiple configurations
(Debug compilation, Release compilation, and so on), conversion follows this logic:

If the project contains only Debug and Release configurations,
then the Debug configuration is converted to Visual Studio 2005."

That means that, since the default compilation mode is set to <compilation debug="false">
in the *Master web.config* in the CONFIG directory of the .Net Framework directory,
all you need to do to generate assemblies with debugging information is change the
web.config setting to <compilation debug="true">.

If you change that setting for one application (in its web.config), then only that application
will generate assemblies with debugging information.

If you change it at the master web.config level, all applications will generate debugging
information
( not advisable, as it will impact performace adversely ).
 
J

Juan T. Llibre

That's a relief !

;-)

Thanks for the link. I didn't know Scott had written about it.
He wrote a masterful explanation, as usual.
 
J

Juan T. Llibre

I have a "Configuration Manager" menu item available in the
Standard Toolbar's "Build" menu, but it doesn't have "Release" in the dropdown.

It only has the "Debug" configuration available.
 
J

Juan T. Llibre

For Windows Forms I get all the options, but not for Web Solutions.

For Web Solutions I only get "Debug".
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top