20 references to ContainsProject
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (2)
209
if (committedDocument == null && !solution.
ContainsProject
(document.Project.Id))
267
Debug.Assert(_solution.
ContainsProject
(documentId.ProjectId));
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
480
private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.
ContainsProject
(Id);
1241
if (!_projectSystemProjectFactory.Workspace.CurrentSolution.
ContainsProject
(Id))
Workspace\Solution\Solution.cs (2)
144
if (this.
ContainsProject
(projectId))
1704
if (!
ContainsProject
(projectId))
Workspace\Solution\SolutionChanges.cs (2)
26
if (!_oldSolution.
ContainsProject
(id))
53
if (!_newSolution.
ContainsProject
(id))
Workspace\Workspace.cs (2)
2303
if (!solution.
ContainsProject
(projectId))
2319
if (solution.
ContainsProject
(projectId))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (9)
2434
Assert.True(solution.
ContainsProject
(pid), "Solution was expected to have project " + pid);
2695
Assert.True(solution.
ContainsProject
(project.Id), "Solution was expected to have project " + project.Id);
2716
if (solution.
ContainsProject
(referenced.ProjectId))
2947
Assert.False(sol2.
ContainsProject
(pid));
2948
Assert.True(sol2.
ContainsProject
(pid2), "sol2 was expected to contain project " + pid2);
2972
Assert.False(sol2.
ContainsProject
(pid));
2973
Assert.True(sol2.
ContainsProject
(pid2), "sol2 was expected to contain project " + pid2);
2979
Assert.True(sol3.
ContainsProject
(pid), "sol3 was expected to contain " + pid);
2980
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))