58 references to ProjectReferences
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
289Assert.True(snapshot.GetProject(id1).ProjectReferences.Contains(reference), "ProjectReferences did not contain project2"); 328Assert.Equal(0, snapshot.GetProject(id1).ProjectReferences.Count());
Microsoft.CodeAnalysis.EditorFeatures (2)
Preview\AbstractPreviewFactoryService.cs (2)
228var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId); 229var newProjectReferences = projectChanges.NewProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (4)
AddImport\AbstractAddImportFeatureService.cs (1)
470viableProjects.RemoveAll(project.ProjectReferences.Select(r => solution.GetRequiredProject(r.ProjectId)));
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
82nonGlobalAliasedProjectReferencesSet.AddRange(currentProject.ProjectReferences.Where(pr => !HasGlobalAlias(pr.Aliases)).Select(pr => pr.ProjectId));
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
377if (!triggeringProject.ProjectReferences.Any(pr => pr.ProjectId == projectToBeUpdated.Id))
Rename\SymbolicRenameInfo.cs (1)
235if (solution.Projects.Any(p => p.IsSubmission && p.ProjectReferences.Any(r => r.ProjectId == projectIdOfLocation)))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\CommitBufferManager.vb (1)
310For Each reference In project.ProjectReferences
Microsoft.CodeAnalysis.Workspaces (8)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
95foreach (var projectReference in project.ProjectReferences)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
317return project.ProjectReferences.Any(p => p.ProjectId == symbolOrigination.sourceProject.Id);
Workspace\Solution\ProjectChanges.cs (4)
26var oldRefs = new HashSet<ProjectReference>(OldProject.ProjectReferences); 27foreach (var reference in NewProject.ProjectReferences) 38var newRefs = new HashSet<ProjectReference>(NewProject.ProjectReferences); 39foreach (var reference in OldProject.ProjectReferences)
Workspace\Workspace.cs (2)
1481if (!project.ProjectReferences.Contains(newProjRef)) 2035project.ProjectReferences,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (26)
NetCoreTests.cs (6)
126var projectReference = Assert.Single(project.ProjectReferences); 173var projectReference = Assert.Single(project.ProjectReferences); 351var projectReference = Assert.Single(project.ProjectReferences); 391Assert.Empty(project.ProjectReferences); 420Assert.Empty(project.ProjectReferences); 517var projectReference = Assert.Single(project.ProjectReferences);
VisualStudioMSBuildWorkspaceTests.cs (20)
224Assert.True(projects[0].ProjectReferences.Any(r => r.ProjectId == projects[1].Id) || 225projects[1].ProjectReferences.Any(r => r.ProjectId == projects[0].Id)); 743Assert.Empty(project.ProjectReferences); 1225Assert.Empty(project.ProjectReferences); // no resolved project references 1254Assert.Empty(project.ProjectReferences); // no resolved project references 1287Assert.Empty(project.ProjectReferences); // no resolved project references 1325Assert.Empty(project.ProjectReferences); 1349Assert.Empty(project.ProjectReferences); 1372Assert.Empty(project.ProjectReferences); 1394var projRefs = project.ProjectReferences.ToList(); 1415var projRefs = project.ProjectReferences.ToList(); 1438Assert.Empty(vbProject.ProjectReferences); 1446Assert.Single(vbProject.ProjectReferences); 2449Assert.Empty(project.ProjectReferences); 2469Assert.Empty(project.ProjectReferences); 2522Assert.InRange(project.ProjectReferences.Count(), 0, 1); 2963var pref = project.ProjectReferences.First(); 2967Assert.Empty(workspace.CurrentSolution.GetProject(project.Id).ProjectReferences); 2974Assert.Single(workspace.CurrentSolution.GetProject(project.Id).ProjectReferences); 3214Assert.Single(project.ProjectReferences);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\ProjectDependencyGraphTests.cs (5)
508var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id); 536var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id); 566var aToB = a.ProjectReferences.Single(reference => reference.ProjectId == b.Id); 615var firstBToC = b.ProjectReferences.First(reference => reference.ProjectId == c.Id); 620var remainingBToC = b.ProjectReferences.Single(reference => reference.ProjectId == c.Id);
SolutionTests\SolutionTests.cs (5)
1955Assert.Empty(newSolution1.GetProject(projectId)!.ProjectReferences); 1983AssertEx.Equal((ProjectReference[])[projectRef2], solution3.GetProject(projectId)!.ProjectReferences); 2857foreach (var referenced in project.ProjectReferences) 4996Assert.True(solution.GetProject(projectId1).ProjectReferences.Contains(p => p.ProjectId == projectId2)); 5024Assert.True(solution.GetProject(projectId2).ProjectReferences.Contains(p => p.ProjectId == projectId1));
WorkspaceTests\AdhocWorkspaceTests.cs (2)
142Assert.Equal(1, project2.ProjectReferences.Count()); 143Assert.Equal(id1, project2.ProjectReferences.First().ProjectId);
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\VisualStudioWorkspaceImpl.AddProjectReferenceUndoUnit.cs (1)
34!fromProject.ProjectReferences.Any(p => p.ProjectId == _toProjectId))
ProjectSystem\VisualStudioWorkspaceImpl.RemoveProjectReferenceUndoUnit.cs (1)
34fromProject.ProjectReferences.Any(p => p.ProjectId == _toProjectId))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\ResetInteractiveTests.cs (1)
143var projectReferences = project.ProjectReferences.SelectMany(p => GetProjectReferences(