Assembly.GetReferencedAssemblies

  • Thread starter Thread starter Mythran
  • Start date Start date
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
 
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
 
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
 
Back
Top