I am trying to get a list of referenced assemblies for a an assembly I load into a main app in MEF.
I want to make sure that all the referenced assemblies are present in the folder before running the plugin.
I tried using
List<AssemblyName> a = Assembly.GetEntryAssembly().GetReferencedAssemblies().ToList();
But when I do this, it only shows me assemblies used/loaded at that stage. I want a complete list (at runtime) of assemblies referenced (a replica of the References Folder in VS) regardless of whether they are used at that moment or at all.