To get currently loaded assemblies I use:
AppDomain.CurrentDomain.GetAssemblies();
To get all reference assemblies (even unloaded ones), I tried:
Assembly.GetExecutingAssembly().GetReferencedAssemblies();
and
Assembly.GetEntryAssembly().GetReferencedAssemblies();
But neither of the above two methods are returning all the assemblies. They are returning the same assemblies as the first method above.
What is the correct way to get all referenced assemblies?
Aucun commentaire:
Enregistrer un commentaire