20 references to RemoveProjectReference
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
568solutionChanges.Solution.RemoveProjectReference(Id, projectReference)); 626newSolution: solutionChanges.Solution.RemoveProjectReference(Id, projectReference));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
506var newSolution = solutionChanges.Solution.RemoveProjectReference(projectIdToRetarget, convertedReference.projectReference)
Workspace\Solution\Project.cs (1)
598=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetProject(this.Id)!;
Workspace\Workspace.cs (1)
724return oldSolution.RemoveProjectReference(projectId, projectReference);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\ProjectDependencyGraphTests.cs (5)
512solution = solution.RemoveProjectReference(a.Id, aToB); 540solution = solution.RemoveProjectReference(a.Id, aToB); 570solution = solution.RemoveProjectReference(a.Id, aToB); 619solution = solution.RemoveProjectReference(b.Id, firstBToC); 624solution = solution.RemoveProjectReference(b.Id, remainingBToC);
SolutionTests\SolutionTests.cs (7)
1448var solution2 = solution.RemoveProjectReference(projectId, externalProjectRef); 1452var solution3 = solution.RemoveProjectReference(projectId, projectRef2); 1455var solution4 = solution3.RemoveProjectReference(projectId, externalProjectRef); 1458Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveProjectReference(null!, projectRef2)); 1459Assert.Throws<ArgumentNullException>("projectReference", () => solution.RemoveProjectReference(projectId, null!)); 1462Assert.Throws<ArgumentException>("projectReference", () => solution.RemoveProjectReference(projectId, new ProjectReference(ProjectId.CreateNewId()))); 1465Assert.Throws<InvalidOperationException>(() => solution.RemoveProjectReference(ProjectId.CreateNewId(), projectRef2));
Microsoft.VisualStudio.LanguageServices (1)
Preview\ReferenceChange.ProjectReferenceChange.cs (1)
29=> solution.RemoveProjectReference(this.ProjectId, _reference);
Roslyn.VisualStudio.Next.UnitTests (2)
Services\ServiceHubServicesTests.cs (2)
270solution = solution.RemoveProjectReference(projectId1, project1ToProject2); 281solution = solution.RemoveProjectReference(projectId2, project2ToProject1);