Is the action "publish ..." in VS2008 automatically compiled in release mode?

I'm a little confused about all this

  • Is there <compilation debug="true"> in web.config that you are in debug mode? I think no? Is this related to debug / release mode?

  • Is the action "publish ..." in VS2008 automatically compiled in release mode? Where can I bind the action "publish ..." to "release"?

  • When I "publish ..." a project, and if I have <compilation debug="true"> , does the compiler insert any additional code for debugging?

I think it's simple, but to me it seems confusing.

David

+4
source share
1 answer

<compilation debug="true"> refers to the page compilation mode at runtime and is not related to your build configuration. This does not affect the main build of your project or library support; just a page.

Publish... will publish assemblies and content using the current assembly configuration, whether it be Debug, Release, or another custom configuration.

If you are using Visual Studio 2010, you can look at the web.config conversions to make sure that you are not freeing the code with the compilation debug flag set to true. http://msdn.microsoft.com/en-us/library/dd465326.aspx

+4
source

All Articles