Referenced assemblies

  • Thread starter Abdessamad Belangour
  • 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.
 
R

Richard A. Lowe

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top