Loop thru Assemblies

  • Thread starter Thread starter JezB
  • Start date Start date
J

JezB

I have a library method that exists in a project assembly (eg. WebLib or
WinLib). Within this method I want to scan the other assemblies in the
solution generically for embedded resource files. I have a way of scanning
an assembly for embedded resource files, but as yet I have not discovered a
way to iterate through the assemblies in my whole solution at runtime. Could
anyone help ?
 
I'll answer myself as I just found it, for the record :-
foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
 
Back
Top