25 references to ContainsProject
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (2)
210if (committedDocument == null && !solution.ContainsProject(document.Project.Id)) 268Debug.Assert(_solution.ContainsProject(documentId.ProjectId));
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
456private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 1262if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id))
Workspace\Solution\Project.cs (1)
136public IEnumerable<ProjectReference> ProjectReferences => _projectState.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
Workspace\Solution\Solution.cs (2)
118if (this.ContainsProject(projectId)) 1872if (!ContainsProject(projectId))
Workspace\Solution\SolutionChanges.cs (2)
26if (!_oldSolution.ContainsProject(id)) 53if (!_newSolution.ContainsProject(id))
Workspace\Workspace.cs (2)
2065if (!solution.ContainsProject(projectId)) 2081if (solution.ContainsProject(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
1930Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid); 2191Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id); 2212if (solution.ContainsProject(referenced.ProjectId)) 2442Assert.False(sol2.ContainsProject(pid)); 2443Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 2467Assert.False(sol2.ContainsProject(pid)); 2468Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2); 2474Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid); 2475Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.VisualStudio.LanguageServices (1)
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
117if (!solution.ContainsProject(projectId))
Microsoft.VisualStudio.LanguageServices.Implementation (3)
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSource.cs (2)
40if (workspace.CurrentSolution.ContainsProject(projectId)) 81if (!e.NewSolution.ContainsProject(ProjectId))
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSource.cs (1)
216if (!e.NewSolution.ContainsProject(_parentGeneratorItem.ProjectId))
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
386if (CurrentSolution.ContainsProject(id.ProjectId))