Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am still a bit of a noob.

I have a main app that loads plugins. I want to validate that all the Reference DLL's required to run the plugin exists in the Main App directory before I launch the plugin and if not, download it from a location.

Where I struggle is to get a list of references from the plugin.

I tried this:

List<assemblyname> a = Assembly.GetEntryAssembly().GetReferencedAssemblies().ToList();

But the problem is, this only gives me the assemblies loaded at that stage. I need a list of all the assemblies referenced in the app, whether used or not, or loaded or not. Basically I need a replica list of the References List in Visual Studio.

Any advice please?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900