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)
500private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 1350if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id))
Workspace\Solution\Solution.cs (2)
145if (this.ContainsProject(projectId)) 1730if (!ContainsProject(projectId))
Workspace\Solution\SolutionChanges.cs (2)
26if (!_oldSolution.ContainsProject(id)) 53if (!_newSolution.ContainsProject(id))
Workspace\Workspace.cs (2)
2338if (!solution.ContainsProject(projectId)) 2354if (solution.ContainsProject(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
2577Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid); 2838Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id); 2859if (solution.ContainsProject(referenced.ProjectId)) 3090Assert.False(sol2.ContainsProject(pid)); 3091Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3115Assert.False(sol2.ContainsProject(pid)); 3116Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3122Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid); 3123Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
370if (CurrentSolution.ContainsProject(id.ProjectId))