By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,672 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,672 IT Pros & Developers. It's quick & easy.

GetReferenceAssemblies() Issue

P: n/a
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,
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 13 '05 #2

P: n/a
The other assemblies are loaded late bound by using the
Assembly.LoadFrom method.

Thanks,
-----Original Message-----
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 notwritten to the executable during compilation.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
.

Nov 13 '05 #3

P: n/a
Buddy <Bu***@OnlineWork.com> wrote:
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()

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.