You can find the assemblies that a given assembly references using
reflection, sort of like this:
System.Reflection.Assembly a =
System.Reflection.Assembly.GetExecutingAssembly();
foreach(System.Reflection.Assembly referenced in
a.GetReferencedAssemblies())
{
Console.WriteLine(referenced.GetName());
}
Mantorok wrote:
Hi
I have a project that references one of our components, is there a way in
.Net to get a list of references that the application is depending on?
The reason for this is so I can load certain dlls on app startup.
Thanks
Kev