20 references to RuntimeIdentifier
Microsoft.NET.Build.Tasks (20)
GenerateBundle.cs (20)
80
OSPlatform targetOS =
RuntimeIdentifier
.StartsWith("win") ? OSPlatform.Windows :
81
RuntimeIdentifier
.StartsWith("osx") ? OSPlatform.OSX :
82
RuntimeIdentifier
.StartsWith("freebsd") ? OSPlatform.Create("FREEBSD") :
83
RuntimeIdentifier
.StartsWith("openbsd") ? OSPlatform.Create("OPENBSD") :
84
RuntimeIdentifier
.StartsWith("illumos") ? OSPlatform.Create("ILLUMOS") :
85
RuntimeIdentifier
.StartsWith("solaris") ? OSPlatform.Create("SOLARIS") :
86
RuntimeIdentifier
.StartsWith("haiku") ? OSPlatform.Create("HAIKU") :
89
Architecture targetArch =
RuntimeIdentifier
.EndsWith("-x64") ||
RuntimeIdentifier
.Contains("-x64-") ? Architecture.X64 :
90
RuntimeIdentifier
.EndsWith("-x86") ||
RuntimeIdentifier
.Contains("-x86-") ? Architecture.X86 :
91
RuntimeIdentifier
.EndsWith("-arm64") ||
RuntimeIdentifier
.Contains("-arm64-") ? Architecture.Arm64 :
92
RuntimeIdentifier
.EndsWith("-arm") ||
RuntimeIdentifier
.Contains("-arm-") ? Architecture.Arm :
94
RuntimeIdentifier
.EndsWith("-riscv64") ||
RuntimeIdentifier
.Contains("-riscv64-") ? Architecture.RiscV64 :
95
RuntimeIdentifier
.EndsWith("-loongarch64") ||
RuntimeIdentifier
.Contains("-loongarch64-") ? Architecture.LoongArch64 :
97
throw new ArgumentException(nameof(
RuntimeIdentifier
));