phmonte / Buildalyzer

A utility to perform design-time builds of .NET projects without having to think too hard about it.
MIT License
593 stars 94 forks source link

Getting MetadataReferences returns a lot of Reference Assemblies #137

Closed VS-ux closed 4 years ago

VS-ux commented 4 years ago

This is probably a stupid question, but using solutionWorkspace.CurrentSolution.Projects.SelectMany(p => p.MetadataReferences).Select(m => m.Display) to get all the references returns a lot of reference assemblies in SolutionDir\packages\Microsoft.NETFramework.ReferenceAssemblies.net48.1.0.0\build\.NETFramework\v4.8. Is there any way to get the actual assemblies themselves? Thanks.