26 references to AllProjectReferences
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
1204
return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).
AllProjectReferences
.Contains(projectReference);
1212
var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).
AllProjectReferences
;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (12)
NetCoreTests.cs (1)
398
Assert.Single(project.
AllProjectReferences
);
VisualStudioMSBuildWorkspaceTests.cs (11)
1214
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1243
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1276
Assert.Single(project.
AllProjectReferences
); // dangling project reference
1314
Assert.Empty(project.
AllProjectReferences
);
1338
Assert.Empty(project.
AllProjectReferences
);
1361
Assert.Single(project.
AllProjectReferences
);
2695
Assert.Single(testProject.
AllProjectReferences
);
2699
Assert.Empty(libraryProject.
AllProjectReferences
);
2721
Assert.Single(testProject.
AllProjectReferences
);
2725
Assert.Single(library1Project.
AllProjectReferences
);
2729
Assert.Empty(library2Project.
AllProjectReferences
);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
1355
opt => opt.GetProject(projectId)!.
AllProjectReferences
,
1365
Assert.Same(projectRefs, solution2.GetProject(projectId)!.
AllProjectReferences
);
1385
Assert.Same(projectRefs, newSolution1.GetProject(projectId)!.
AllProjectReferences
);
1417
AssertEx.Equal(new[] { projectRef2, externalProjectRef }, solution3.GetProject(projectId)!.
AllProjectReferences
);
1449
AssertEx.Equal(new[] { projectRef2 }, solution2.GetProject(projectId)!.
AllProjectReferences
);
1453
AssertEx.Equal(new[] { externalProjectRef }, solution3.GetProject(projectId)!.
AllProjectReferences
);
1456
Assert.Empty(solution4.GetProject(projectId)!.
AllProjectReferences
);
2445
Assert.True(sol2.GetProject(pid2).
AllProjectReferences
.Any(r => r.ProjectId == pid), "sol2 project pid2 was expected to contain project reference " + pid);
2470
Assert.True(sol2.GetProject(pid2).
AllProjectReferences
.Any(r => r.ProjectId == pid), "sol2 pid2 was expected to contain " + pid);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
ProjectSystemShim\CPS\CSharpReferencesTests.cs (3)
101
Assert.Single(environment.Workspace.CurrentSolution.GetProject(project2.Id).
AllProjectReferences
);
105
Assert.Empty(environment.Workspace.CurrentSolution.GetProject(project2.Id).
AllProjectReferences
);
122
Assert.Empty(environment.Workspace.CurrentSolution.GetProject(project1.Id).
AllProjectReferences
);