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)
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)
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)
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)
391project = Workspace.CurrentSolution.GetRequiredProject(projectId);
Workspace\Solution\Project.cs (26)
551=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id); 557=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id); 560=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id); 563=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id); 566=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id); 572=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id); 578=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id); 585=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id); 592=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id); 598=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id); 605=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id); 612=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id); 619=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id); 625=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id); 632=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id); 639=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id); 646=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id); 652=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id); 659=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id); 666=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id); 732return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id); 742return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id); 751=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id); 760return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id); 769=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id); 778return 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);