4 instantiations of FrameworkRuntimePair
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
1872frameworkRuntimePairs.Add(new FrameworkRuntimePair(frameworkRuntimeDefinition.Framework, frameworkRuntimeDefinition.RuntimeIdentifier));
NuGet.Packaging (2)
RuntimeModel\JsonRuntimeFormat.cs (2)
187yield return new FrameworkRuntimePair(framework, value.Value<string>()); 191yield return new FrameworkRuntimePair(framework, property.Value.ToString());
NuGet.ProjectModel (1)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
572yield return new FrameworkRuntimePair(framework, value);
34 references to FrameworkRuntimePair
NuGet.Commands (20)
RestoreCommand\CompatibilityIssue.cs (8)
24public List<FrameworkRuntimePair> AvailableFrameworkRuntimePairs { get; } 33IEnumerable<FrameworkRuntimePair> availableFrameworkRuntimePairs) 53Enumerable.Empty<FrameworkRuntimePair>()); 69Enumerable.Empty<FrameworkRuntimePair>()); 81availableFrameworkRuntimePairs: Enumerable.Empty<FrameworkRuntimePair>()); 97Enumerable.Empty<FrameworkRuntimePair>()); 112Enumerable.Empty<FrameworkRuntimePair>()); 243var frp = AvailableFrameworkRuntimePairs.Single();
RestoreCommand\DependencyGraphResolver.cs (1)
279foreach (FrameworkRuntimePair? frameworkRuntimePair in compatProfile.RestoreContexts)
RestoreCommand\FrameworkRuntimeDefinition.cs (1)
25Name = FrameworkRuntimePair.GetTargetGraphName(framework, runtimeIdentifier);
RestoreCommand\ProjectRestoreCommand.cs (3)
46IEnumerable<FrameworkRuntimePair> frameworkRuntimePairs, 284var name = FrameworkRuntimePair.GetTargetGraphName(framework, runtimeIdentifier); 468_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, FrameworkRuntimePair.GetTargetGraphName(graph.Framework, runtimeName)));
RestoreCommand\RestoreCommand.cs (4)
1041aliasToTargetGraphName.Add(framework.TargetAlias, FrameworkRuntimePair.GetTargetGraphName(framework.FrameworkName, runtimeIdentifier: null)); 1865List<FrameworkRuntimePair> frameworkRuntimePairs = new(); 1934foreach (var pair in compatProfile.RestoreContexts) 2098foreach (var pair in compatProfile.RestoreContexts)
RestoreCommand\RestoreRequest.cs (2)
46CompatibilityProfiles = new HashSet<FrameworkRuntimePair>(); 123public ISet<FrameworkRuntimePair> CompatibilityProfiles { get; }
RestoreCommand\RestoreTargetGraph.cs (1)
84TargetGraphName = string.IsNullOrEmpty(TargetAlias) ? FrameworkRuntimePair.GetTargetGraphName(Framework, RuntimeIdentifier) : GetTargetGraphName(TargetAlias, RuntimeIdentifier);
NuGet.Frameworks (5)
FrameworkRuntimePair.cs (5)
13public sealed class FrameworkRuntimePair : IEquatable<FrameworkRuntimePair>, IComparable<FrameworkRuntimePair> 28public bool Equals(FrameworkRuntimePair? other) 37return Equals(obj as FrameworkRuntimePair); 54public int CompareTo(FrameworkRuntimePair? other)
NuGet.Packaging (5)
RuntimeModel\CompatibilityProfile.cs (3)
15public IList<FrameworkRuntimePair> RestoreContexts { get; } 18: this(name, Enumerable.Empty<FrameworkRuntimePair>()) 21public CompatibilityProfile(string name, IEnumerable<FrameworkRuntimePair> restoreContexts)
RuntimeModel\JsonRuntimeFormat.cs (2)
170var sets = new List<FrameworkRuntimePair>(); 179private static IEnumerable<FrameworkRuntimePair> ReadCompatibilitySets(KeyValuePair<string, JToken> property)
NuGet.ProjectModel (4)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (4)
547List<FrameworkRuntimePair> sets = null; 558IEnumerable<FrameworkRuntimePair> profiles = ReadCompatibilitySets(values, propertyName); 563return new CompatibilityProfile(profileName, sets ?? Enumerable.Empty<FrameworkRuntimePair>()); 566private static IEnumerable<FrameworkRuntimePair> ReadCompatibilitySets(IReadOnlyList<string> values, string compatibilitySetName)