c# - How to check if an assembly was built using Debug or Release configuration? -
I am starting deploying my web application and I need a guarantee that all the assemblies are being deployed. Using our Release Configuration, our system will have C # /. Was developed using Net 3.5.
Is there any way to achieve this?
The idea is that you get the list of assembly specifications using Assembly.GetCustomAttributes ()
and search for DebuggableAttribute
and then find out that in this specialty such as < Code> IsJITTrackingEnabled property set.
Public Bull IceSandDebabild (assembly assembly) {return assembly.gate CustomAttributes (false). OFTIP & lt; DebuggableAttribute & gt; (). Select (da = & gt; da.IJJITTrackingEnabled) .FirstOrDefault (); }
Comments
Post a Comment