GetReferenceAssemblies() Issue

  • Thread starter Thread starter Buddy
  • Start date Start date
B

Buddy

Hello,

I have an assembly that references about 50+ assemblies,
but when I load the assembly using Assembly.LoadFrom() and
view the referenced assemblies by calling
GetReferenceAssemblies() 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,
 
I have an assembly that references about 50+ assemblies,
but when I load the assembly using Assembly.LoadFrom() and
view the referenced assemblies by calling
GetReferenceAssemblies() 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.


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



Mattias
 
Buddy said:
The other assemblies are loaded late bound by using the
Assembly.LoadFrom method.

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