Visual Studio 2005 Will Not Compile in Release Configuration Mode

SUMMARY: how to compile in release mode ... I can not get it to "take" what I want to do.

I have a webservice project in VS2005 C # that I am trying to optimize. One of the things I raised my awareness of is the recommendation for compilation in Release mode. I'm not sure what to expect from here, but here's what I see:

I’ll go back to the project and select “Properties” and then the “Assembly” tab. I click the “Configuration” drop-down box, set the value to “RELEASE” and notice that the “Output path” is \ bin I click REBUILD in the project and the DLL goes into folder \ bin \ debug (not \ bin)! Here is a snippet inserted from the output window of this compilation (note that it shows the configuration as "Debug any processor", and later / define: DEBUG; TRACE):

------ Rebuild All started: Project: TRIMBrokerService, Configuration: Debug Any CPU ------
C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Csc.exe / noconfig / nowarn: 1701,1702 / errorreport: prompt / warn: 4 / define: DEBUG; TRACE 
/ reference: "C: \ Program Files \ Microsoft WSE \ v3.0 \ Microsoft.Web.Services3.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll / reference : C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll 
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll / reference: C : \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Mobile.dll / reference: C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ System.Web.Services.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll / reference: .. \ TRIMBrokerUtilities \ TRIMBrokerUtil \ bin \ Debug \ TRIMBrokerUtil.dll 
/ debug + / debug: full / optimize- /out:obj\Debug\TRIMBrokerService.dll / target: library FaultCode.cs FileService.asmx.cs Properties \ AssemblyInfo.cs Properties \ Settings.Designer.cs Settings.cs "Web References \ ASMXwsTrim \ Reference.cs "

Compile complete - 0 errors, 0 warnings
TRIMBrokerService -> C: \ Documents and Settings \ johna \ My Documents \ Visual Studio 2005 \ Projects \ WSE \ TRIMBrokerPassingByteArray \ TRIMBroker \ TRIMBrokerService \ bin \ debug \ TRIMBrokerService.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

, "" "" ( "" ) "", \bin\debug, , , Release. ? MSBuild, -, , , .

+3
4

Configuration Manager.. , "Active solution configuration" Release. , Release.

, - .

+5

, "" , , .

" " "", "" " ".

+2

VS 2008. , , , . . , , : , , 260 . , , "debug" 2 "release". 260 "". , . , .

+2
source

If you have an assembly going to bin \ Debug, then someone changed the project incorrectly. Everything that uses ASP.NET should contain assemblies in bin.

+1
source

Source: https://habr.com/ru/post/1707880/


All Articles