I have a ASP.NET application that I am trying to build in release mode, but upon inspection (Assembly Information) it is always showing up in debug mode. I've also changed the Web.config entry to s开发者_如何转开发pecify that the compilation mode should not be debug, but still no luck. Does anyone have any ideas how to get my build into release mode?
Edit: The project is VB.NET.
In the Build
menu, select Configuration Manager
. There you can change your Active solution configuration
to Release
instead of Debug
.
An alternative, is to get Properties
of the project, select the Build
tab, and select Release
for the project's Configuration
.
We ran across the same issue. The project was set to build in release, as well as the containing solution. It even spit out the dll to the release folder - but upon inspection it was a debug build. I found the solution in the project's advanced compiler settings. It appears when the Generate debug info is set to anything other than none - the project always builds in debug mode.
Change this setting to none to fix the issue.
It looks like the Assembly Information application I had posted above isn't quite working the way I'd expect. I added code to my AssemblyInfo.vb file and I can see that my assembly is being built in release mode, yet the application is saying it was a debug build. Perhaps the application works better on an older or newer version of .NET, but it isn't working for me.
精彩评论