Release mode build problem

Dec 4, 2008 at 5:39 AM
Hi,
I build Enterprise Library solution on Release mode. I use toolls that display if assemblies are compile in Debug or Release mode (like my: http://www.codeplex.com/AssemblyInformation) and the tools show that even in release mode the Enterprise Library assemblies are still mark as Debug.
I found that on Release mode Enterprise Library projects build with Debug info: full and not PDB only.
What is the reason for this???

Why when you build with Debug info: full on release mode the assemblly mark as Debug?? Is it .NET bug? Is it affect on the assemblly performance?
Please help.
Dec 4, 2008 at 7:37 AM
Hi,

Have you also used other tools to view the compile configuration of the assemblies and compare the results? AFAIK, building with release mode optimizes the assembly execution.


Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com
Dec 4, 2008 at 11:49 AM
Yes I check this with other tools as well.
It seems that the default Release build configuration of Enterprise Library 4.1 mark the assemblies as Debug. It happned as I wrote below because in release mode the "Debug info" is set to full.

Do you know if it they configure it like this on purpose?
Dec 5, 2008 at 7:09 AM
I checked the source code of AssemblyInformation, I was wondering why is it using the IsJITTrackingEnabled property.  I think it should be the IsJITOptimizerDisabled property instead.  Check out this link... http://blog.gadodia.net/detecting-a-dot-net-assembly%E2%80%99s-build-configuration/

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc
entlib.support@avanade.com