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