49 references to GetRequiredProject
Microsoft.CodeAnalysis.Workspaces (49)
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
84.Select(solution.GetRequiredProject)
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
203var project = solution.GetRequiredProject(projectId); 239dependentProjects.Add((solution.GetRequiredProject(pId), hasInternalsAccess: true));
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
510.Select(solution.GetRequiredProject)
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
61var project = solution.GetRequiredProject(projectId);
Remote\RemoteArguments.cs (1)
103var project = solution.GetRequiredProject(projectId);
Rename\ConflictEngine\ConflictResolver.cs (1)
154foreach (var language in projectIds.Select(p => solution.GetRequiredProject(p).Language).Distinct())
Rename\Renamer.RenameDocumentActionSet.cs (1)
140var project = solution.GetRequiredProject(_documentId.ProjectId);
Rename\RenameUtilities.cs (2)
102return projectIdsOfRenameSymbolDeclaration.SelectMany(p => solution.GetRequiredProject(p).Documents); 110return relevantProjects.SelectMany(p => solution.GetRequiredProject(p).Documents);
Workspace\ProjectSystem\ProjectSystemProject.cs (6)
383s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithAssemblyPath(value))); 395s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithGeneratedFilesOutputDirectory(value))); 780var project = solution.GetRequiredProject(projectId); 1303return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1311var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1377var project = w.CurrentSolution.GetRequiredProject(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
391project = 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); 760return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id); 770return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id); 779=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id); 788return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id); 797=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id); 806return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
Workspace\Solution\Solution.cs (1)
327var generatedDocument = this.GetRequiredProject(documentState.Id.ProjectId).TryGetSourceGeneratedDocumentForAlreadyGeneratedId(documentState.Id);
Workspace\Solution\SolutionChanges.cs (4)
28yield return _newSolution.GetRequiredProject(id); 44yield return _newSolution.GetRequiredProject(id).GetChanges(_oldSolution.GetRequiredProject(id)); 55yield return _oldSolution.GetRequiredProject(id);
Workspace\Workspace_Editor.cs (1)
894return newSolution.GetRequiredProject(oldProject.Id);