Get from .dll executors assembly

218 Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST ANSWER

I found the answer myself; use this method: Assembly.GetEntryAssembly()