> To obtain a TypeDefinition (to continue walking the
> inheritance chain), you need to call TypeReference.Resolve():
> (snip)
>                 type = type.BaseType != null
>                         ? type.Base.Resolve ()
>                         : null;

Cool. That works, but only if the base class is in the same assembly.

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?
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to