20 references to RuntimeIdentifier
Microsoft.NET.Build.Tasks (20)
GenerateBundle.cs (20)
55
OSPlatform targetOS =
RuntimeIdentifier
.StartsWith("win") ? OSPlatform.Windows :
56
RuntimeIdentifier
.StartsWith("osx") ? OSPlatform.OSX :
57
RuntimeIdentifier
.StartsWith("freebsd") ? OSPlatform.Create("FREEBSD") :
58
RuntimeIdentifier
.StartsWith("openbsd") ? OSPlatform.Create("OPENBSD") :
59
RuntimeIdentifier
.StartsWith("illumos") ? OSPlatform.Create("ILLUMOS") :
60
RuntimeIdentifier
.StartsWith("solaris") ? OSPlatform.Create("SOLARIS") :
61
RuntimeIdentifier
.StartsWith("haiku") ? OSPlatform.Create("HAIKU") :
64
Architecture targetArch =
RuntimeIdentifier
.EndsWith("-x64") ||
RuntimeIdentifier
.Contains("-x64-") ? Architecture.X64 :
65
RuntimeIdentifier
.EndsWith("-x86") ||
RuntimeIdentifier
.Contains("-x86-") ? Architecture.X86 :
66
RuntimeIdentifier
.EndsWith("-arm64") ||
RuntimeIdentifier
.Contains("-arm64-") ? Architecture.Arm64 :
67
RuntimeIdentifier
.EndsWith("-arm") ||
RuntimeIdentifier
.Contains("-arm-") ? Architecture.Arm :
69
RuntimeIdentifier
.EndsWith("-riscv64") ||
RuntimeIdentifier
.Contains("-riscv64-") ? Architecture.RiscV64 :
70
RuntimeIdentifier
.EndsWith("-loongarch64") ||
RuntimeIdentifier
.Contains("-loongarch64-") ? Architecture.LoongArch64 :
72
throw new ArgumentException(nameof(
RuntimeIdentifier
));