20 references to RemoveProjectReference
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
568
solutionChanges.Solution.
RemoveProjectReference
(Id, projectReference));
626
newSolution: solutionChanges.Solution.
RemoveProjectReference
(Id, projectReference));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
506
var 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)
724
return oldSolution.
RemoveProjectReference
(projectId, projectReference);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\ProjectDependencyGraphTests.cs (5)
512
solution = solution.
RemoveProjectReference
(a.Id, aToB);
540
solution = solution.
RemoveProjectReference
(a.Id, aToB);
570
solution = solution.
RemoveProjectReference
(a.Id, aToB);
619
solution = solution.
RemoveProjectReference
(b.Id, firstBToC);
624
solution = solution.
RemoveProjectReference
(b.Id, remainingBToC);
SolutionTests\SolutionTests.cs (7)
1448
var solution2 = solution.
RemoveProjectReference
(projectId, externalProjectRef);
1452
var solution3 = solution.
RemoveProjectReference
(projectId, projectRef2);
1455
var solution4 = solution3.
RemoveProjectReference
(projectId, externalProjectRef);
1458
Assert.Throws<ArgumentNullException>("projectId", () => solution.
RemoveProjectReference
(null!, projectRef2));
1459
Assert.Throws<ArgumentNullException>("projectReference", () => solution.
RemoveProjectReference
(projectId, null!));
1462
Assert.Throws<ArgumentException>("projectReference", () => solution.
RemoveProjectReference
(projectId, new ProjectReference(ProjectId.CreateNewId())));
1465
Assert.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)
270
solution = solution.
RemoveProjectReference
(projectId1, project1ToProject2);
281
solution = solution.
RemoveProjectReference
(projectId2, project2ToProject1);