23 references to AllProjectReferences
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
1303
return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).
AllProjectReferences
.Contains(projectReference);
1311
var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).
AllProjectReferences
;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (12)
NetCoreTests.cs (1)
392
Assert.Single(project.
AllProjectReferences
);
VisualStudioMSBuildWorkspaceTests.cs (11)
1226
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1255
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1288
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1326
Assert.Empty(project.
AllProjectReferences
);
1350
Assert.Empty(project.
AllProjectReferences
);
1373
Assert.Single(project.
AllProjectReferences
);
2730
Assert.Single(testProject.
AllProjectReferences
);
2734
Assert.Empty(libraryProject.
AllProjectReferences
);
2756
Assert.Single(testProject.
AllProjectReferences
);
2760
Assert.Single(library1Project.
AllProjectReferences
);
2764
Assert.Empty(library2Project.
AllProjectReferences
);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
1922
opt => opt.GetProject(projectId)!.
AllProjectReferences
,
1932
Assert.Same(projectRefs, solution2.GetProject(projectId)!.
AllProjectReferences
);
1952
Assert.Same(projectRefs, newSolution1.GetProject(projectId)!.
AllProjectReferences
);
1984
AssertEx.Equal((ProjectReference[])[projectRef2, externalProjectRef], solution3.GetProject(projectId)!.
AllProjectReferences
);
2016
AssertEx.Equal((ProjectReference[])[projectRef2], solution2.GetProject(projectId)!.
AllProjectReferences
);
2020
AssertEx.Equal((ProjectReference[])[externalProjectRef], solution3.GetProject(projectId)!.
AllProjectReferences
);
2023
Assert.Empty(solution4.GetProject(projectId)!.
AllProjectReferences
);
3093
Assert.True(sol2.GetProject(pid2).
AllProjectReferences
.Any(r => r.ProjectId == pid), "sol2 project pid2 was expected to contain project reference " + pid);
3118
Assert.True(sol2.GetProject(pid2).
AllProjectReferences
.Any(r => r.ProjectId == pid), "sol2 pid2 was expected to contain " + pid);