21 references to ContainsProject
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (2)
231if (committedDocument == null && !solution.ContainsProject(document.Project.Id)) 295Debug.Assert(_solution.ContainsProject(documentId.ProjectId));
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
510private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 1368if (!_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)
152if (this.ContainsProject(projectId)) 1747if (!ContainsProject(projectId))
Workspace\Solution\SolutionChanges.cs (2)
29if (!OldSolution.ContainsProject(id)) 56if (!NewSolution.ContainsProject(id))
Workspace\Workspace.cs (2)
2364if (!solution.ContainsProject(projectId)) 2380if (solution.ContainsProject(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
2604Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid); 2868Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id); 2889if (solution.ContainsProject(referenced.ProjectId)) 3119Assert.False(sol2.ContainsProject(pid)); 3120Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3144Assert.False(sol2.ContainsProject(pid)); 3145Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 3151Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid); 3152Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
370if (CurrentSolution.ContainsProject(id.ProjectId))