10 references to AddProjectReference
Microsoft.CodeAnalysis.Features (1)
AddImport\CodeActions\ProjectSymbolReferenceCodeAction.cs (1)
45var projectWithAddedReference = project.AddProjectReference(new ProjectReference(FixData.ProjectReferenceToAdd));
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace.cs (1)
1441project = project.AddProjectReference(newProjRef);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
2974workspace.TryApplyChanges(workspace.CurrentSolution.GetProject(project.Id).AddProjectReference(pref).Solution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (2)
5647project2 = project2.AddProjectReference(new(project1.Id)); 5677project2 = project2.AddProjectReference(new(project1.Id));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
664solution = AddEmptyProject(solution).AddProjectReference(
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.AddProjectReferenceUndoUnit.cs (1)
36var updatedProject = fromProject.AddProjectReference(new ProjectReference(_toProjectId));
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (1)
1749solution = current.AddProjectReference(new ProjectReference(p2pReferences[i])).Solution;
Services\SolutionServiceTests.cs (2)
892solution = solution.GetProject(project1.Id).AddProjectReference(new ProjectReference(project2.Id)).Solution; 924project1 = project1.AddProjectReference(new ProjectReference(ProjectId.CreateNewId()));