50 references to GetRequiredProject
Microsoft.CodeAnalysis.Workspaces (50)
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)
509return [.. projectsThatCouldReferenceType.Intersect(allProjectsThatTheseProjectsDependOn).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)
153foreach (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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
81var project = solution.GetRequiredProject(documentId.ProjectId);
Workspace\ProjectSystem\ProjectSystemProject.cs (6)
385s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithAssemblyPath(value))); 397s => s.WithProjectCompilationOutputInfo(Id, s.GetRequiredProject(Id).CompilationOutputInfo.WithGeneratedFilesOutputDirectory(value))); 782var project = solution.GetRequiredProject(projectId); 1339return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1347var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1413var project = w.CurrentSolution.GetRequiredProject(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
390project = Workspace.CurrentSolution.GetRequiredProject(projectId);
Workspace\Solution\Project.cs (26)
550=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id); 556=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id); 559=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id); 562=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id); 565=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id); 571=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id); 577=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id); 584=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id); 591=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id); 597=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id); 604=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id); 611=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id); 618=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id); 624=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id); 631=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id); 638=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id); 645=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id); 651=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id); 658=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id); 665=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id); 731return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id); 741return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id); 750=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id); 759return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id); 768=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id); 777return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
Workspace\Solution\Solution.cs (1)
335var generatedDocument = this.GetRequiredProject(documentState.Id.ProjectId).TryGetSourceGeneratedDocumentForAlreadyGeneratedId(documentState.Id);
Workspace\Solution\SolutionChanges.cs (4)
31yield return _newSolution.GetRequiredProject(id); 47yield return _newSolution.GetRequiredProject(id).GetChanges(_oldSolution.GetRequiredProject(id)); 58yield return _oldSolution.GetRequiredProject(id);
Workspace\Workspace_Editor.cs (1)
894return newSolution.GetRequiredProject(oldProject.Id);