GetReferenceAssemblies() Issue

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

    #1

    GetReferenceAssemblies() Issue

    Hello,

    I have an assembly that references about 50+ assemblies,
    but when I load the assembly using Assembly.LoadFr om() and
    view the referenced assemblies by calling
    GetReferenceAss emblies() it shows about 31 assembly
    references, I cannot see the rest. I've also notices by us
    ISAM or any assembly viewers shows the same thing.

    Thanks,
  • Mattias Sjögren

    #2
    Re: GetReferenceAss emblies() Issue

    [color=blue]
    >I have an assembly that references about 50+ assemblies,
    >but when I load the assembly using Assembly.LoadFr om() and
    >view the referenced assemblies by calling
    >GetReferenceAs semblies() it shows about 31 assembly
    >references, I cannot see the rest. I've also notices by us
    >ISAM or any assembly viewers shows the same thing.[/color]


    Do you use anything in the other assemblies? Unused references are not
    written to the executable during compilation.



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    • Buddy

      #3
      Re: GetReferenceAss emblies() Issue

      The other assemblies are loaded late bound by using the
      Assembly.LoadFr om method.

      Thanks,
      [color=blue]
      >-----Original Message-----
      >[color=green]
      >>I have an assembly that references about 50+ assemblies,
      >>but when I load the assembly using Assembly.LoadFr om() [/color][/color]
      and [color=blue][color=green]
      >>view the referenced assemblies by calling
      >>GetReferenceA ssemblies() it shows about 31 assembly
      >>references, I cannot see the rest. I've also notices by [/color][/color]
      us [color=blue][color=green]
      >>ISAM or any assembly viewers shows the same thing.[/color]
      >
      >
      >Do you use anything in the other assemblies? Unused [/color]
      references are not[color=blue]
      >written to the executable during compilation.
      >
      >
      >
      >Mattias
      >
      >--
      >Mattias Sjögren [MVP] mattias @ mvps.org
      >http://www.msjogren.net/dotnet/
      >Please reply only to the newsgroup.
      >.
      >[/color]

      Comment

      • Jon Skeet

        #4
        Re: GetReferenceAss emblies() Issue

        Buddy <Buddy@OnlineWo rk.com> wrote:[color=blue]
        > The other assemblies are loaded late bound by using the
        > Assembly.LoadFr om method.[/color]

        Ah. In that case they're not really referenced assemblies. You might
        want to look at AppDomain.GetAs semblies()

        --
        Jon Skeet - <skeet@pobox.co m>
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

        If replying to the group, please do not mail me too

        Comment

        Working...