Referenced assemblies

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

    #1

    Referenced assemblies

    Hi all,
    I have two questions about assemblies.
    Q1. Why the GetReferencedAs semblies() Method of an Assembly class returns
    sometimes "mscorlib" and "System" as referenced assemblies knowing that a
    System is a namespace (not an assembly) within mscorlib assembly.
    Q2. For test purposes i copy the "mscorlib.d ll" assembly on my desktop and
    then my program cannot load it. Meanwhile i load it from its origin location
    without any problem. what's wrong ?
    Thanks in advance.



  • Richard A. Lowe

    #2
    Re: Referenced assemblies

    A1. System is *ALSO* a separate, physical assembly (System.dll) with some
    overlap with mscorlib.dll in terms of namespaces
    A2. I'll wager that it's because it's in the GAC. Try gacutil /l mscorlib
    to see if it is (it should be) and try removing it to see if your local copy
    works, then.

    ---------------------------
    http://blogs.geekdojo.net/Richard
    --
    Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous voyez
    mauvais C #, c'est mon défaut!
    "Abdessamad Belangour" <belangour@irin .univ-nantes.fr> wrote in message
    news:OzxujtwuDH A.620@TK2MSFTNG P10.phx.gbl...[color=blue]
    > Hi all,
    > I have two questions about assemblies.
    > Q1. Why the GetReferencedAs semblies() Method of an Assembly class returns
    > sometimes "mscorlib" and "System" as referenced assemblies knowing that a
    > System is a namespace (not an assembly) within mscorlib assembly.
    > Q2. For test purposes i copy the "mscorlib.d ll" assembly on my desktop and
    > then my program cannot load it. Meanwhile i load it from its origin[/color]
    location[color=blue]
    > without any problem. what's wrong ?
    > Thanks in advance.
    >
    >
    >[/color]


    Comment

    Working...