Getting a list of loaded assemblies

  • Thread starter Thread starter Lee
  • Start date Start date
L

Lee

Hi,

I have an app that loads in assemblies at run-time using the
Assembly.LoadFrom command. When I look at the list of assemblies using
GetReferencedAssemblies, my loaded ones do not appear in the list. However,
when I throw an exception, they appear in the stack trace as being loaded.

I assume that GetReferencedAssemblies is only picking up things that are
referenced at design-time but is there any way I can see which assemblies
are loaded from the Assembly.LoadFrom command?

TIA

Lee
 
Lee said:
I have an app that loads in assemblies at run-time using the
Assembly.LoadFrom command. When I look at the list of assemblies using
GetReferencedAssemblies, my loaded ones do not appear in the list.
However, when I throw an exception, they appear in the stack trace as
being loaded.

I assume that GetReferencedAssemblies is only picking up things that are
referenced at design-time but is there any way I can see which assemblies
are loaded from the Assembly.LoadFrom command?

Check out 'AppDomain.GetAssemblies'.
 
Back
Top