dimanche 5 novembre 2017

How to just get the path of an assembly rather than loading it?

I am looking at how the runtime locates assemblies and am wondering whether there is a way to just get the path of an assembly found by Assembly.Load rather than actually loading it?

The reason I need this is because AssemblyDefinition.ReadAssembly from Mono.Cecil requires a path directly to the assembly and won't go to the extra effort of trying to locate it for itself. I'd like instead to combine the functionalities of standard System.Reflection and Mono.Cecil.





Aucun commentaire:

Enregistrer un commentaire