Hy,
> Could it be possible to get the path of a loaded assembly in > AssemblyDefinition (or any other object) ? When an assembly is loaded from a file (not from a stream), you can retrieve its path using assemblyDef.MainModule.Image.FileInformation I need to explore the dependencies graph of assemblies and to know > where they are loaded from. > Remember when you load an assembly, its dependencies are not automatically loaded. You can use the AssemblyDefinition.MainModule.AssemblyReferences to get a collection of AssemblyNameReference of the main module. You can use the AssemblyDefinition.Resolver to load assemblies from their AssemblyNameReferences. Furthermore, information about the GAC would be helpful too (was the > assembly loaded from the GAC, which GAC, ...) I don't believe Cecil exposes such kind of information. You can have a look at the source of DefautAssemblyResolver to understand how Cecil resolves assembly filenames from their names. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
