Project MetadataReferences is not populated when ProjectReferences are present
I'm loading in a solution in the MSBuildWorkspace: var msWorkspace = MSBuildWorkspace.Create(); var solution = msWorkspace.OpenSolutionAsync(solutionPath).Result; Projects without ProjectReferences show all MetadataReferences, including mscorlib. Projects with ProjectReferences have an empty collection of MetadataReferences. As compilation works, I guess the compiler platform for some reason is not populating this collection, and I'm wondering why? If I remove the ProjectReferences, the MetadataReferences collection gets populated correctly. EDIT: Diagnostics contains errors for missing