Hello everyone,
I am generating an Assembly on the fly using Reflection.Emit and then saving it. It contains one Type and a static Main() method in it.
.NET is kind enough to automatically reference a required assembly. However, in Main(), there is a call to a method from another assembly and it doesn't get referenced in the standard way.
When the assembly is executed, the runtime looks for this assembly and cannot find it, which is a problem.
Reflector can detect this and shows this extra assembly under the "depends" list. How can I retrieve these implicit dependencies using the Reflection API?
Thanks