1 write to ProjectReferences
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
172
ProjectReferences
= projectReferences;
10 references to ProjectReferences
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\ProjectInfo.cs (2)
300
var newProjectReferences = projectReferences ??
ProjectReferences
;
311
newProjectReferences ==
ProjectReferences
&&
Workspace\Solution\ProjectState.cs (1)
695
public IReadOnlyList<ProjectReference> ProjectReferences => this.ProjectInfo.
ProjectReferences
;
Workspace\Solution\SolutionCompilationState.cs (1)
597
.WithProjectReferences(projectId, info.
ProjectReferences
)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
381
=> from.
ProjectReferences
.Any(pr => pr.ProjectId == to);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\ProjectInfoTests.cs (5)
116
Assert.Same(projectReference, ((ImmutableArray<ProjectReference>)info1.
ProjectReferences
).Single());
119
Assert.True(((ImmutableArray<ProjectReference>)info2.
ProjectReferences
).IsEmpty);
122
Assert.True(((ImmutableArray<ProjectReference>)info3.
ProjectReferences
).IsEmpty);
125
Assert.True(((ImmutableArray<ProjectReference>)info4.
ProjectReferences
).IsEmpty);
205
SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithProjectReferences(value), opt => opt.
ProjectReferences
, new ProjectReference(projectId), allowDuplicates: false);