13 references to RuntimeIdentifier
Microsoft.NET.Build.Tasks (13)
GenerateBundle.cs (13)
55
OSPlatform targetOS =
RuntimeIdentifier
.StartsWith("win") ? OSPlatform.Windows :
56
RuntimeIdentifier
.StartsWith("osx") ? OSPlatform.OSX :
57
RuntimeIdentifier
.StartsWith("freebsd") ? OSPlatform.Create("FREEBSD") :
58
RuntimeIdentifier
.StartsWith("illumos") ? OSPlatform.Create("ILLUMOS") :
61
Architecture targetArch =
RuntimeIdentifier
.EndsWith("-x64") ||
RuntimeIdentifier
.Contains("-x64-") ? Architecture.X64 :
62
RuntimeIdentifier
.EndsWith("-x86") ||
RuntimeIdentifier
.Contains("-x86-") ? Architecture.X86 :
63
RuntimeIdentifier
.EndsWith("-arm64") ||
RuntimeIdentifier
.Contains("-arm64-") ? Architecture.Arm64 :
64
RuntimeIdentifier
.EndsWith("-arm") ||
RuntimeIdentifier
.Contains("-arm-") ? Architecture.Arm :
69
throw new ArgumentException(nameof(
RuntimeIdentifier
));