I am generating a assembly using reflection on Flickr. Amit and save it again. There is a type and a static main () method.
.net is enough to automatically refer to an essential assembly, however, in the main (), there is a call from one assembly to another method and it is not referred to in a standard way .
When the assembly is executed, the runtime looks to this assembly and can not find it, which is a problem.
Reflector can detect this and it can show additional assemblies under the "Dependent" list. How do I achieve these underlying dependencies using the Reflection API?
Thanks
Thanks for answering the people, I have to solve this problem Has been successful.
Here's what:
Assembly Builder Builder = ... // Generating Assembly
Builder GetReferencedAssemblies (); => This method will not return the context of the Assembly used in the body, even if I have already called Save (it) - it seems that the legislative assemblies already filled in memory only bring back.
Assembly ReflectionOnlyLoadFrom (filename) .GetReferencedAssemblies () => Works fine
Comments
Post a Comment