473,486 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Assembly.GetReferencedAssemblies

The Assembly.GetReferencedAssemblies method doesn't return all assemblies
referenced by a project. I assume this is because of optimizations made at
compile time that only include the reference to those assemblies that are
actually used in the output assembly, and excludes referenced assemblies
that aren't used?

Mythran

May 25 '06 #1
3 5036
Mythran,

Yes, you are correct.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
The Assembly.GetReferencedAssemblies method doesn't return all assemblies
referenced by a project. I assume this is because of optimizations made
at compile time that only include the reference to those assemblies that
are actually used in the output assembly, and excludes referenced
assemblies that aren't used?

Mythran

May 25 '06 #2
Hello Mythran,

Just to add to Nicolas GetReferencedAssemblies reads info from manifest data

BTW, this was discussed there http://www.dotnet247.com/247referenc...29/147561.aspx

M> The Assembly.GetReferencedAssemblies method doesn't return all
M> assemblies referenced by a project. I assume this is because of
M> optimizations made at compile time that only include the reference to
M> those assemblies that are actually used in the output assembly, and
M> excludes referenced assemblies that aren't used?
M>
M> Mythran
M>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 25 '06 #3
Hello Mythran,

And I recomend to read this http://msdn.microsoft.com/msdnmag/issues/06/03/TestRun/
M> The Assembly.GetReferencedAssemblies method doesn't return all
M> assemblies referenced by a project. I assume this is because of
M> optimizations made at compile time that only include the reference to
M> those assemblies that are actually used in the output assembly, and
M> excludes referenced assemblies that aren't used?
M>
M> Mythran
M>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
10506
by: nospam | last post by:
Just wondering, What do you think the difference in performance would be between (1.) Compiled C# (2.) Compiled C++ (3.) and Assembly Language And how would the mix be if some if any of...
1
1486
by: Robbie from Philippines | last post by:
how do i read the assembly version (not the file version) of ? tnx..
3
2153
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a...
14
14224
by: Nak | last post by:
Hi there, Does anyone know how I would get the value of the assembly GUID in code from within the same application? Thanks in advance. Nick. --...
1
1237
by: Bob | last post by:
For an assembly I manually load from a file, this code snippet: For Each t As Type In asm.GetTypes 'do something Next generates this error message: ...
3
4380
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
3
1160
by: vivekian | last post by:
Hi , Just wondering is there a simple way to extract the names of all the assemblies placed in your bin folder ? thanks in advance..
0
1254
by: Rob Meade | last post by:
Hi all, I have some code which we use to retrieve an assembly version of a referenced assembly in our proects, this information is displayed in our footer part of our template. I've just...
2
1391
by: rjjaw | last post by:
Here is what I have but it isn't working if someone could point me in the right direction I would greatly appreciate it. Try Dim objAssembly As Reflection.Assembly...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.