5

How do i know for sure that my production server uses release build dll's. Is there a way to find that info inside dll?


Duplicate of:

Community
  • 1
  • 1
Claus Thomsen
  • 2,325
  • 2
  • 24
  • 27
  • The "Duplicate" is correct but the anwers there did not suit my needs. It a production server and i do not have access to installing neither own apps or 3rd party. – Claus Thomsen Mar 12 '09 at 11:52

2 Answers2

12

If it is a c# DLL then you can use ildasm (Program Files\Microsoft SDKs\Windows\v6.0A\bin\ildasm.exe) to find out this information.

1) Drag DLL into ILDASM

2) Dbl-Click on the MANIFEST

3) Look for:

// .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 nn nn nn nn nn nn nn )

4) For DEBUG DLLs it will be ( 01 00 07 01 00 00 00 00 ) and for release (01 00 02 00 00 00 00 00) or (01 00 03 00 00 00 00)

Let me know if you need any further info! BTW This is obviously the non programmatic solution.

Duncan Edwards
  • 1,528
  • 2
  • 19
  • 32
  • Its the non-programatic solution I was looking for :) Only problem is that ildasm.exe is not a "standard" installation for a production server. – Claus Thomsen Mar 12 '09 at 11:57
  • Yep, there's nothing that'll make your system guy happier than sticking a few utilities on the Production Server! :-) Good luck – Duncan Edwards Mar 12 '09 at 12:01
2

In your AssemlyInfo.cs you can include the following:

#if DEBUG
[assembly: AssemblyDescription("Your description - Debug")]
#else
[assembly: AssemblyDescription("Your description")]
#endif

This will make it easy to see, when using the build in properties dialog on File Explorer.

GvS
  • 52,015
  • 16
  • 101
  • 139