davitz38
davitz38

Reputation: 387

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

I'm a bit confused about all that

I guess this is simple but it seems confusing for me

David

Upvotes: 4

Views: 279

Answers (1)

kbrimington
kbrimington

Reputation: 25692

<compilation debug="true"> refers to run-time page compilation mode, and is not related to your build configuration. It does not affect your project's primary assembly, or supporting libraries; just pages.

Publish... will publish assemblies and content using the current build configuration, be it Debug, Release, or some other custom configuration.

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

Upvotes: 4

Related Questions