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