I'am creating framework in C#, and i need to get assembly of executor. That means that i need assembly of .exe that is using my .dll.
... Assembly.GetExecutingAssembly()
returns .dll assembly not assembly of .exe.
I'am creating framework in C#, and i need to get assembly of executor. That means that i need assembly of .exe that is using my .dll.
... Assembly.GetExecutingAssembly()
returns .dll assembly not assembly of .exe.
I found the answer myself; use this method:
Assembly.GetEntryAssembly()