21 references to ContainsProject
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (2)
233if (committedDocument == null && !solution.ContainsProject(document.Project.Id)) 297Debug.Assert(_solution.ContainsProject(documentId.ProjectId));
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
520private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 1378if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id))
Workspace\Solution\Project.cs (1)
136public IEnumerable<ProjectReference> ProjectReferences => State.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
Workspace\Solution\Solution.cs (2)
153if (this.ContainsProject(projectId)) 1748if (!ContainsProject(projectId))
Workspace\Solution\SolutionChanges.cs (2)
29if (!_oldSolution.ContainsProject(id)) 56if (!_newSolution.ContainsProject(id))
Workspace\Workspace.cs (2)
2366if (!solution.ContainsProject(projectId)) 2382if (solution.ContainsProject(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
2601Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid); 2865Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id); 2886if (solution.ContainsProject(referenced.ProjectId)) 3116Assert.False(sol2.ContainsProject(pid)); 3117Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3141Assert.False(sol2.ContainsProject(pid)); 3142Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3148Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid); 3149Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
370if (CurrentSolution.ContainsProject(id.ProjectId))