6 instantiations of FrameworkRuntimePair
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
2137
frameworkRuntimePairs.Add(new
FrameworkRuntimePair
(frameworkRuntimeDefinition.Framework, frameworkRuntimeDefinition.RuntimeIdentifier));
NuGet.Packaging (4)
RuntimeModel\JsonRuntimeFormat.cs (4)
294
values.Add(new
FrameworkRuntimePair
(framework, reader.GetString()));
303
values.Add(new
FrameworkRuntimePair
(framework, runtimeIdentifier));
530
yield return new
FrameworkRuntimePair
(framework, value.Value<string>());
534
yield return new
FrameworkRuntimePair
(framework, property.Value.ToString());
NuGet.ProjectModel (1)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
573
yield return new
FrameworkRuntimePair
(framework, value);
38 references to FrameworkRuntimePair
NuGet.Commands (20)
RestoreCommand\CompatibilityIssue.cs (8)
24
public List<
FrameworkRuntimePair
> AvailableFrameworkRuntimePairs { get; }
33
IEnumerable<
FrameworkRuntimePair
> availableFrameworkRuntimePairs)
53
Enumerable.Empty<
FrameworkRuntimePair
>());
69
Enumerable.Empty<
FrameworkRuntimePair
>());
81
availableFrameworkRuntimePairs: Enumerable.Empty<
FrameworkRuntimePair
>());
97
Enumerable.Empty<
FrameworkRuntimePair
>());
112
Enumerable.Empty<
FrameworkRuntimePair
>());
243
var
frp = AvailableFrameworkRuntimePairs.Single();
RestoreCommand\DependencyGraphResolver.cs (1)
279
foreach (
FrameworkRuntimePair
? frameworkRuntimePair in compatProfile.RestoreContexts)
RestoreCommand\FrameworkRuntimeDefinition.cs (1)
25
Name =
FrameworkRuntimePair
.GetTargetGraphName(framework, runtimeIdentifier);
RestoreCommand\ProjectRestoreCommand.cs (3)
46
IEnumerable<
FrameworkRuntimePair
> frameworkRuntimePairs,
284
var name =
FrameworkRuntimePair
.GetTargetGraphName(framework, runtimeIdentifier);
468
_logger.LogVerbose(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages,
FrameworkRuntimePair
.GetTargetGraphName(graph.Framework, runtimeName)));
RestoreCommand\RestoreCommand.cs (4)
1291
aliasToTargetGraphName.Add(framework.TargetAlias,
FrameworkRuntimePair
.GetTargetGraphName(framework.FrameworkName, runtimeIdentifier: null));
2130
List<
FrameworkRuntimePair
> frameworkRuntimePairs = new();
2199
foreach (
var
pair in compatProfile.RestoreContexts)
2363
foreach (
var
pair in compatProfile.RestoreContexts)
RestoreCommand\RestoreRequest.cs (2)
46
CompatibilityProfiles = new HashSet<
FrameworkRuntimePair
>();
123
public ISet<
FrameworkRuntimePair
> CompatibilityProfiles { get; }
RestoreCommand\RestoreTargetGraph.cs (1)
84
TargetGraphName = string.IsNullOrEmpty(TargetAlias) ?
FrameworkRuntimePair
.GetTargetGraphName(Framework, RuntimeIdentifier) : GetTargetGraphName(TargetAlias, RuntimeIdentifier);
NuGet.Frameworks (5)
FrameworkRuntimePair.cs (5)
13
public sealed class FrameworkRuntimePair : IEquatable<
FrameworkRuntimePair
>, IComparable<
FrameworkRuntimePair
>
28
public bool Equals(
FrameworkRuntimePair
? other)
37
return Equals(obj as
FrameworkRuntimePair
);
54
public int CompareTo(
FrameworkRuntimePair
? other)
NuGet.Packaging (9)
RuntimeModel\CompatibilityProfile.cs (3)
15
public IList<
FrameworkRuntimePair
> RestoreContexts { get; }
18
: this(name, Enumerable.Empty<
FrameworkRuntimePair
>())
21
public CompatibilityProfile(string name, IEnumerable<
FrameworkRuntimePair
> restoreContexts)
RuntimeModel\JsonRuntimeFormat.cs (6)
262
List<
FrameworkRuntimePair
> restoreContexts = [];
268
List<
FrameworkRuntimePair
>? pairs = ReadFrameworkRuntimePairs(
287
private static List<
FrameworkRuntimePair
>? ReadFrameworkRuntimePairs(
291
var values = new List<
FrameworkRuntimePair
>();
513
var sets = new List<
FrameworkRuntimePair
>();
522
private static IEnumerable<
FrameworkRuntimePair
> ReadCompatibilitySets(KeyValuePair<string, JToken> property)
NuGet.ProjectModel (4)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (4)
548
List<
FrameworkRuntimePair
> sets = null;
559
IEnumerable<
FrameworkRuntimePair
> profiles = ReadCompatibilitySets(values, propertyName);
564
return new CompatibilityProfile(profileName, sets ?? Enumerable.Empty<
FrameworkRuntimePair
>());
567
private static IEnumerable<
FrameworkRuntimePair
> ReadCompatibilitySets(IReadOnlyList<string> values, string compatibilitySetName)