4 instantiations of FrameworkRuntimePair
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
1872
frameworkRuntimePairs.Add(new
FrameworkRuntimePair
(frameworkRuntimeDefinition.Framework, frameworkRuntimeDefinition.RuntimeIdentifier));
NuGet.Packaging (2)
RuntimeModel\JsonRuntimeFormat.cs (2)
187
yield return new
FrameworkRuntimePair
(framework, value.Value<string>());
191
yield return new
FrameworkRuntimePair
(framework, property.Value.ToString());
NuGet.ProjectModel (1)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
572
yield return new
FrameworkRuntimePair
(framework, value);
34 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)
1041
aliasToTargetGraphName.Add(framework.TargetAlias,
FrameworkRuntimePair
.GetTargetGraphName(framework.FrameworkName, runtimeIdentifier: null));
1865
List<
FrameworkRuntimePair
> frameworkRuntimePairs = new();
1934
foreach (
var
pair in compatProfile.RestoreContexts)
2098
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 (5)
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 (2)
170
var sets = new List<
FrameworkRuntimePair
>();
179
private static IEnumerable<
FrameworkRuntimePair
> ReadCompatibilitySets(KeyValuePair<string, JToken> property)
NuGet.ProjectModel (4)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (4)
547
List<
FrameworkRuntimePair
> sets = null;
558
IEnumerable<
FrameworkRuntimePair
> profiles = ReadCompatibilitySets(values, propertyName);
563
return new CompatibilityProfile(profileName, sets ?? Enumerable.Empty<
FrameworkRuntimePair
>());
566
private static IEnumerable<
FrameworkRuntimePair
> ReadCompatibilitySets(IReadOnlyList<string> values, string compatibilitySetName)