How to test if an "ReflectionOnly" loaded assembly is build in debug mode RRS feed

  • Question

  • Hi

    Can someone explain me it it is possible to test whether an "ReflectionOnly" loaded assembly has been build in debug or release mode?

    In a normal load scenario I can test the IsJITTrackingEnabled property on DebuggableAttribute attribute; but when loaded through ReflectionOnlyLoadFrom I have to use CustomAttributeData in order to inspect the attribute properties and here I don't know how to get access to IsJITTrackingEnabled (if at all possible). But maybe the route I have taken here is wrong.

    Thanks in advance


    Monday, December 27, 2010 1:19 PM


  • We cannot know whether an assembly is built aginst Debug or Release, because Debug/Release is the concept of build time.

    • Marked as answer by eryang Friday, January 7, 2011 1:45 AM
    Monday, January 3, 2011 2:36 AM