1 write to MetadataReferences
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
173
MetadataReferences
= metadataReferences;
11 references to MetadataReferences
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\ProjectInfo.cs (2)
301
var newMetadataReferences = metadataReferences ??
MetadataReferences
;
312
newMetadataReferences ==
MetadataReferences
&&
Workspace\Solution\ProjectState.cs (1)
689
public IReadOnlyList<MetadataReference> MetadataReferences => this.ProjectInfo.
MetadataReferences
;
Workspace\Solution\SolutionCompilationState.cs (1)
598
.WithProjectMetadataReferences(projectId, info.
MetadataReferences
)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
CommandLineProject\CommandLineProjectTests.cs (2)
180
Assert.Single(info.
MetadataReferences
.OfType<PortableExecutableReference>(), r => r.FilePath == pathToAssembly);
192
Assert.Single(info.
MetadataReferences
.OfType<PortableExecutableReference>(), r => r.FilePath == pathToAssembly);
SolutionTests\ProjectInfoTests.cs (5)
135
Assert.Same(metadataReference, ((ImmutableArray<MetadataReference>)info1.
MetadataReferences
).Single());
138
Assert.True(((ImmutableArray<MetadataReference>)info2.
MetadataReferences
).IsEmpty);
141
Assert.True(((ImmutableArray<MetadataReference>)info3.
MetadataReferences
).IsEmpty);
144
Assert.True(((ImmutableArray<MetadataReference>)info4.
MetadataReferences
).IsEmpty);
204
SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithMetadataReferences(value), opt => opt.
MetadataReferences
, (MetadataReference)new TestMetadataReference(), allowDuplicates: false);