M
mkruluts
Guest
I have the following structure:
A) Application executable
B) Dynamically loaded DLL extension containing a form
C) Base DLL that contains a form that is inherited by the extension form
What I am trying to do, is get the Assembly information from the extension DLL (B) in the base DLL (C). I tried Assembly.GetCallingAssembly() and Assembly.GetEntryAssembly(). However, both of these return the Assembly for the main executable (A). Assembly.GetExecutingAssembly() correctly identifies the base DLL (C) assembly as I want it to, but I can't figure out how to get the assembly information from the DLL extension (B).
It should be noted, that the base DLL (C) is also dynamically loaded by the main executable (A). My entire structure works well with the exception of this one feature I am trying to add. Basically, within the base DLL (C), there is a menu option that displays environmental information. I am trying to display the version information of the dynamically loaded extension (B) on this form. The base DLL (C) is inherited because it maintains all of the core components for the extensions in one place, and the extensions can be developed without worrying about these core components.
Is what I am trying to do, in relation to the Assembly, even possible? Any help would be greatly appreciated.
Continue reading...
A) Application executable
B) Dynamically loaded DLL extension containing a form
C) Base DLL that contains a form that is inherited by the extension form
What I am trying to do, is get the Assembly information from the extension DLL (B) in the base DLL (C). I tried Assembly.GetCallingAssembly() and Assembly.GetEntryAssembly(). However, both of these return the Assembly for the main executable (A). Assembly.GetExecutingAssembly() correctly identifies the base DLL (C) assembly as I want it to, but I can't figure out how to get the assembly information from the DLL extension (B).
It should be noted, that the base DLL (C) is also dynamically loaded by the main executable (A). My entire structure works well with the exception of this one feature I am trying to add. Basically, within the base DLL (C), there is a menu option that displays environmental information. I am trying to display the version information of the dynamically loaded extension (B) on this form. The base DLL (C) is inherited because it maintains all of the core components for the extensions in one place, and the extensions can be developed without worrying about these core components.
Is what I am trying to do, in relation to the Assembly, even possible? Any help would be greatly appreciated.
Continue reading...