20 references to ContainsProject
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (2)
209if (committedDocument == null && !solution.ContainsProject(document.Project.Id)) 267Debug.Assert(_solution.ContainsProject(documentId.ProjectId));
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
480private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 1241if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id))
Workspace\Solution\Solution.cs (2)
144if (this.ContainsProject(projectId)) 1704if (!ContainsProject(projectId))
Workspace\Solution\SolutionChanges.cs (2)
26if (!_oldSolution.ContainsProject(id)) 53if (!_newSolution.ContainsProject(id))
Workspace\Workspace.cs (2)
2303if (!solution.ContainsProject(projectId)) 2319if (solution.ContainsProject(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
2434Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid); 2695Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id); 2716if (solution.ContainsProject(referenced.ProjectId)) 2947Assert.False(sol2.ContainsProject(pid)); 2948Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 2972Assert.False(sol2.ContainsProject(pid)); 2973Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 2979Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid); 2980Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
370if (CurrentSolution.ContainsProject(id.ProjectId))