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:
How to tell if .net app was compiled in DEBUG or RELEASE mode?
How to check if DLL is debug-compiled
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With