GetReferenceAssemblies() Issue

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,
 
M

Mattias Sjögren

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
 
B

Buddy

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

Thanks,
 
J

Jon Skeet

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()
 

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