Saturday, March 24, 2012

Loop thru Assemblies

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())

"JezB" <jezb@.somewhere.com> wrote in message
news:elvgQVjQEHA.4020@.TK2MSFTNGP11.phx.gbl...
> 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 ?

0 comments:

Post a Comment