Referenced assemblies

  • Thread starter Thread starter Abdessamad Belangour
  • Start date Start date
A

Abdessamad Belangour

Hi all,
I have two questions about assemblies.
Q1. Why the GetReferencedAssemblies() 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.dll" 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.
 
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.
 
Back
Top