9 instantiations of RuntimeGraph
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGet.Build.Tasks.Console (1)
NuGet.Commands (2)
NuGet.Packaging (4)
NuGet.ProjectModel (1)
126 references to RuntimeGraph
Aspire.Hosting.Sdk.Tests (3)
Aspire.RuntimeIdentifier.Tool (3)
Crossgen2Tasks (7)
dotnet (4)
installer.tasks (3)
Microsoft.DotNet.Build.Tasks.Packaging (6)
Microsoft.DotNet.PackageValidation (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.NET.Build.Containers (3)
Microsoft.NET.Build.Tasks (14)
NuGet.Commands (41)
RestoreCommand\DependencyGraphResolver.cs (13)
109/// <item>A <see cref="RuntimeGraph" /> representing the runtime graph of the resolved dependency graph.</item>
112public async Task<ValueTuple<bool, List<RestoreTargetGraph>, RuntimeGraph>> ResolveAsync(
141RuntimeGraph allRuntimes = RuntimeGraph.Empty;
177if (TryGetRuntimeGraph(localRepositories, graphsByTargetFramework, frameworkRuntimeDefinition, projectTargetFramework, out RuntimeGraph? runtimeGraph))
180allRuntimes = RuntimeGraph.Merge(allRuntimes, runtimeGraph);
302/// <param name="runtimeGraph">The <see cref="RuntimeGraph" /> of the dependency graph.</param>
315RuntimeGraph? runtimeGraph,
757private static bool EvaluateRuntimeDependencies(ref LibraryDependency libraryDependency, RuntimeGraph? runtimeGraph, string? runtimeIdentifier, ref HashSet<LibraryDependency>? runtimeDependencies)
912RuntimeGraph? runtimeGraph,
1425/// <param name="runtimeGraph">Receives the <see cref="RuntimeGraph" /> for the <see cref="FrameworkRuntimeDefinition" /> if one was found, otherwise <see langword="null" />.</param>
1427private bool TryGetRuntimeGraph(List<NuGetv3LocalRepository> localRepositories, Dictionary<string, RestoreTargetGraph> graphsByTargetAlias, FrameworkRuntimeDefinition frameworkRuntimeDefinition, TargetFrameworkInformation? projectTargetFramework, [NotNullWhen(true)] out RuntimeGraph? runtimeGraph)
1441RuntimeGraph? projectProviderRuntimeGraph = string.IsNullOrWhiteSpace(runtimeGraphPath) ? default : ProjectRestoreCommand.GetRuntimeGraph(runtimeGraphPath, _logger);
RestoreCommand\ProjectRestoreCommand.cs (18)
45public async Task<Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph>> TryRestoreAsync(LibraryRange projectRange,
57var allRuntimes = RuntimeGraph.Empty;
113var projectProvidedRuntimeIdentifierGraphs = new SortedList<string, RuntimeGraph>();
120RuntimeGraph projectProviderRuntimeGraph = null;
131var runtimeGraph = GetRuntimeGraph(graph, localRepositories, projectRuntimeGraph: projectProviderRuntimeGraph, _logger);
135allRuntimes = RuntimeGraph.Merge(allRuntimes, runtimeGraph);
180internal static RuntimeGraph GetRuntimeGraph(string runtimeGraphPath, RestoreCollectorLogger logger)
188var runtimeGraph = JsonRuntimeFormat.ReadRuntimeGraph(stream);
267runtimeGraph: RuntimeGraph.Empty,
277RuntimeGraph runtimeGraph,
462RuntimeGraph runtimes,
486internal static RuntimeGraph GetRuntimeGraph(RestoreTargetGraph graph, IReadOnlyList<NuGetv3LocalRepository> localRepositories, RuntimeGraph projectRuntimeGraph, RestoreCollectorLogger logger)
489var runtimeGraph = projectRuntimeGraph ?? RuntimeGraph.Empty;
508var nextGraph = info.Package.RuntimeGraph;
512runtimeGraph = RuntimeGraph.Merge(runtimeGraph, nextGraph);
RestoreCommand\RestoreCommand.cs (5)
1861Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> result = null;
1917var runtimes = result.Item3;
1944Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> compatibilityResult = null;
2042RuntimeGraph runtimes = null;
2049(bool Success, List<RestoreTargetGraph> Graphs, RuntimeGraph Runtimes) result = await dependencyGraphResolver.ResolveAsync(userPackageFolder, fallbackPackageFolders, context, projectRestoreCommand, localRepositories, token);
NuGet.DependencyResolver.Core (4)
NuGet.Packaging (23)
NuGet.ProjectModel (3)
NuGet.Protocol (9)
sdk-tasks (1)