17 references to RemoveProjectReference
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Project.cs (1)
626
=> this.Solution.
RemoveProjectReference
(this.Id, projectReference).GetRequiredProject(Id);
Workspace\Workspace.cs (1)
899
return oldSolution.
RemoveProjectReference
(projectId, projectReference);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\ProjectDependencyGraphTests.cs (5)
509
solution = solution.
RemoveProjectReference
(a.Id, aToB);
537
solution = solution.
RemoveProjectReference
(a.Id, aToB);
567
solution = solution.
RemoveProjectReference
(a.Id, aToB);
616
solution = solution.
RemoveProjectReference
(b.Id, firstBToC);
621
solution = solution.
RemoveProjectReference
(b.Id, remainingBToC);
SolutionTests\SolutionTests.cs (7)
2015
var solution2 = solution.
RemoveProjectReference
(projectId, externalProjectRef);
2019
var solution3 = solution.
RemoveProjectReference
(projectId, projectRef2);
2022
var solution4 = solution3.
RemoveProjectReference
(projectId, externalProjectRef);
2025
Assert.Throws<ArgumentNullException>("projectId", () => solution.
RemoveProjectReference
(null!, projectRef2));
2026
Assert.Throws<ArgumentNullException>("projectReference", () => solution.
RemoveProjectReference
(projectId, null!));
2029
Assert.Throws<ArgumentException>("projectReference", () => solution.
RemoveProjectReference
(projectId, new ProjectReference(ProjectId.CreateNewId())));
2032
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)
316
solution = solution.
RemoveProjectReference
(projectId1, new ProjectReference(projectId2));
330
solution = solution.
RemoveProjectReference
(projectId2, new ProjectReference(projectId1));