On 8/18/09, Joe White <[email protected]> wrote: > Cool. That works, but only if the base class is in the same assembly.
Nope. Resolve, well, resolves, and if it need to open a new assembly, it will. > But if I'm going through all the classes in my Tests assembly, and I > hit a class whose base class is in my Core assembly, I get a > FileNotFoundException from the Resolve() call, even though Core.dll is > in the same directory that I loaded Tests.dll from. This happens even > if I've previously loaded Core.dll from the AssemblyFactory, so > apparently it doesn't use already-loaded assemblies for resolution. > > How do I get Resolve to resolve types in another assembly? It already does. It uses the .Resolver of the assembly to resolve the assembly references, and then it will get you the definition inside them. -- Jb Evain <[email protected]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
