49 references to GetRequiredProject
Microsoft.CodeAnalysis.Workspaces (49)
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
84
.Select(solution.
GetRequiredProject
)
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
203
var project = solution.
GetRequiredProject
(projectId);
239
dependentProjects.Add((solution.
GetRequiredProject
(pId), hasInternalsAccess: true));
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
510
.Select(solution.
GetRequiredProject
)
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
61
var project = solution.
GetRequiredProject
(projectId);
Remote\RemoteArguments.cs (1)
103
var project = solution.
GetRequiredProject
(projectId);
Rename\ConflictEngine\ConflictResolver.cs (1)
154
foreach (var language in projectIds.Select(p => solution.
GetRequiredProject
(p).Language).Distinct())
Rename\Renamer.RenameDocumentActionSet.cs (1)
140
var project = solution.
GetRequiredProject
(_documentId.ProjectId);
Rename\RenameUtilities.cs (2)
102
return projectIdsOfRenameSymbolDeclaration.SelectMany(p => solution.
GetRequiredProject
(p).Documents);
110
return relevantProjects.SelectMany(p => solution.
GetRequiredProject
(p).Documents);
Workspace\ProjectSystem\ProjectSystemProject.cs (6)
383
s => s.WithProjectCompilationOutputInfo(Id, s.
GetRequiredProject
(Id).CompilationOutputInfo.WithAssemblyPath(value)));
395
s => s.WithProjectCompilationOutputInfo(Id, s.
GetRequiredProject
(Id).CompilationOutputInfo.WithGeneratedFilesOutputDirectory(value)));
780
var project = solution.
GetRequiredProject
(projectId);
1303
return _projectSystemProjectFactory.Workspace.CurrentSolution.
GetRequiredProject
(Id).AllProjectReferences.Contains(projectReference);
1311
var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.
GetRequiredProject
(Id).AllProjectReferences;
1377
var project = w.CurrentSolution.
GetRequiredProject
(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
391
project = Workspace.CurrentSolution.
GetRequiredProject
(projectId);
Workspace\Solution\Project.cs (26)
579
=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).
GetRequiredProject
(Id);
585
=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).
GetRequiredProject
(Id);
588
=> Solution.WithProjectOutputFilePath(Id, path).
GetRequiredProject
(Id);
591
=> Solution.WithProjectOutputRefFilePath(Id, path).
GetRequiredProject
(Id);
594
=> Solution.WithProjectCompilationOutputInfo(Id, info).
GetRequiredProject
(Id);
600
=> this.Solution.WithProjectCompilationOptions(this.Id, options).
GetRequiredProject
(Id);
606
=> this.Solution.WithProjectParseOptions(this.Id, options).
GetRequiredProject
(Id);
613
=> this.Solution.AddProjectReference(this.Id, projectReference).
GetRequiredProject
(Id);
620
=> this.Solution.AddProjectReferences(this.Id, projectReferences).
GetRequiredProject
(Id);
626
=> this.Solution.RemoveProjectReference(this.Id, projectReference).
GetRequiredProject
(Id);
633
=> this.Solution.WithProjectReferences(this.Id, projectReferences).
GetRequiredProject
(Id);
640
=> this.Solution.AddMetadataReference(this.Id, metadataReference).
GetRequiredProject
(Id);
647
=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).
GetRequiredProject
(Id);
653
=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).
GetRequiredProject
(Id);
660
=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).
GetRequiredProject
(Id);
667
=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).
GetRequiredProject
(Id);
674
=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).
GetRequiredProject
(Id);
680
=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).
GetRequiredProject
(Id);
687
=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).
GetRequiredProject
(Id);
694
=> Solution.WithProjectAttributes(attributes).
GetRequiredProject
(Id);
760
return this.Solution.RemoveDocument(documentId).
GetRequiredProject
(Id);
770
return this.Solution.RemoveDocuments(documentIds).
GetRequiredProject
(this.Id);
779
=> this.Solution.RemoveAdditionalDocument(documentId).
GetRequiredProject
(Id);
788
return this.Solution.RemoveAdditionalDocuments(documentIds).
GetRequiredProject
(this.Id);
797
=> this.Solution.RemoveAnalyzerConfigDocument(documentId).
GetRequiredProject
(Id);
806
return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).
GetRequiredProject
(this.Id);
Workspace\Solution\Solution.cs (1)
327
var generatedDocument = this.
GetRequiredProject
(documentState.Id.ProjectId).TryGetSourceGeneratedDocumentForAlreadyGeneratedId(documentState.Id);
Workspace\Solution\SolutionChanges.cs (4)
28
yield return _newSolution.
GetRequiredProject
(id);
44
yield return _newSolution.
GetRequiredProject
(id).GetChanges(_oldSolution.
GetRequiredProject
(id));
55
yield return _oldSolution.
GetRequiredProject
(id);
Workspace\Workspace_Editor.cs (1)
894
return newSolution.
GetRequiredProject
(oldProject.Id);