Hello all
Imagine the following: an assembly (example.dll) containing references
to any GAC assembly (mscorlib) and another local assembly
(local_assembly.dll). While inspecting example.dll I will reach to
references to either local or gac sasembly, there's no problem if I know
the "local_assembly.dll" path and the GAC exact name and version, so
using:
AssemblyNameReference assemblyReference = new AssemblyNameReference ();
assemblyReference.Name = "mscorlib";
assemblyReference.Version = new Version (2, 0);
DefaultAssemblyResolver resolver = new DefaultAssemblyResolver ();
AssemblyDefinition gac_assembly = resolver.Resolve (assemblyReference));
and using
AssemblyDefinition local_assembly = AssemblyFactory.GetAssembly
("local_assembly.dll");
Both AssemblyDefinition instances will contain the TypeDefinition
instances from those assemblies, but what about when I don't know the
"local_assembly.dll" path or the real GAC assembly name and version, is
there a way to let Cecil try to "search" for those?
Regards,
Mario Carrión
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---