Hi,

I'm trying to resolve the references of an assembly. This is what I'm
doing.

dim ParentAssdef as AssemblyDefinition=<Assembly def whose references
I need to resolve>

Dim AssRes as dafaultAssemblyResolver = ParentAssdef.Resolver

for each AssNamRef in ParentAdddef.mainmodules.AssemblyReferences
   try
             dim AssDef as AssemblyDefintion  =
AssRes.Resolve(assNameref)

            'If here, then it is resolved
   catch ex as exception
           'IF here then it is not resolved.
   end try

next


I'm getting 'Not resolved' for assemblies that are in the same folder
as the Parent Assembly and the parent Assemblly is dependent on this.
I tried with BaseAssemblyResolver and still got the same results.

I tried the same thing with Reflector and I'm the assemblies resolved
correctly. I know I'm doing something wrong.

Would you please tell what that is or how to resolve references
dynamically?

Any help would be much appreciated. TIA.

Kid.


--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to