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