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