Assembly.GetReferencedAssemblies

M

Mythran

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
 
M

Michael Nemtsev

Hello Mythran,

Just to add to Nicolas GetReferencedAssemblies reads info from manifest data

BTW, this was discussed there http://www.dotnet247.com/247reference/msgs/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
 
M

Michael Nemtsev

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
 

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