Loop thru Assemblies

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JezB

    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 ?


  • JezB

    #2
    Re: Loop thru Assemblies

    I'll answer myself as I just found it, for the record :-
    foreach (Assembly a in AppDomain.Curre ntDomain.GetAss emblies())

    "JezB" <jezb@somewhere .com> wrote in message
    news:elvgQVjQEH A.4020@TK2MSFTN GP11.phx.gbl...[color=blue]
    > 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[/color]
    a[color=blue]
    > way to iterate through the assemblies in my whole solution at runtime.[/color]
    Could[color=blue]
    > anyone help ?
    >
    >[/color]


    Comment

    Working...