5 writes to RuntimeGraph
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
985RuntimeGraph = new RuntimeGraph(
NuGet.Commands (2)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
245result.RuntimeGraph = GetRuntimeGraph(specItem);
RestoreCommand\Utility\PackageSpecFactory.cs (1)
80RuntimeGraph = new RuntimeGraph(
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
166packageSpec.RuntimeGraph = new RuntimeGraph(
PackageSpec.cs (1)
40RuntimeGraph = runtimeGraph ?? RuntimeGraph.Empty;
16 references to RuntimeGraph
NuGet.Commands (10)
RestoreCommand\DependencyGraphResolver.cs (1)
263foreach (KeyValuePair<string, CompatibilityProfile> profile in _request.Project.RuntimeGraph.Supports)
RestoreCommand\RestoreCommand.cs (8)
181_enableNewDependencyResolver = _request.Project.RuntimeGraph.Supports.Count == 0 && ShouldUseNewResolverWithLockFile(_isLockFileEnabled, _request.Project) && !_request.Project.RestoreMetadata.UseLegacyDependencyResolver; 390telemetry.TelemetryEvent[RuntimeIdentifiersCount] = _request.Project.RuntimeGraph.Runtimes.Count; 625var restoreTargetGraph = RestoreTargetGraph.Create(_request.Project.RuntimeGraph, Enumerable.Empty<GraphNode<RemoteResolveResult>>(), contextForProject, frameworkRuntimePairs[i].TargetAlias, frameworkRuntimePairs[i].Framework, frameworkRuntimePairs[i].RuntimeIdentifier); 1852var hasSupports = _request.Project.RuntimeGraph.Supports.Count > 0; 1910allGraphs.Add(RestoreTargetGraph.Create(_request.Project.RuntimeGraph, Enumerable.Empty<GraphNode<RemoteResolveResult>>(), context, frameworkRuntimePair.TargetAlias, frameworkRuntimePair.Framework, frameworkRuntimePair.RuntimeIdentifier)); 1915foreach (var profile in _request.Project.RuntimeGraph.Supports) 2076graphs.Add(RestoreTargetGraph.Create(_request.Project.RuntimeGraph, Enumerable.Empty<GraphNode<RemoteResolveResult>>(), context, frameworkRuntimePair.TargetAlias, frameworkRuntimePair.Framework, frameworkRuntimePair.RuntimeIdentifier)); 2081foreach (var profile in _request.Project.RuntimeGraph.Supports)
Utility\RequestRuntimeUtility.cs (1)
26runtimes.UnionWith(request.Project.RuntimeGraph.Runtimes.Keys);
NuGet.ProjectModel (6)
PackageSpec.cs (4)
88hashCode.AddObject(RuntimeGraph); 116EqualityUtility.EqualsWithNullCheck(RuntimeGraph, other.RuntimeGraph) && 137RuntimeGraph?.Clone(),
PackageSpecWriter.cs (1)
62JsonRuntimeFormat.WriteRuntimeGraph(writer, packageSpec.RuntimeGraph);
ProjectLockFile\PackagesLockFileUtilities.cs (1)
123var projectRuntimesKeys = project.RuntimeGraph.Runtimes.Select(r => r.Key).Where(k => k != null);