diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs index 0885314cd665..29a23d69ad8d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs @@ -210,7 +210,7 @@ private bool GetCrossgen2TargetOS(out string targetOS) string portablePlatform = NuGetUtils.GetBestMatchingRid( runtimeGraph, _targetRuntimeIdentifier, - ["linux", "osx", "win", "freebsd", "illumos", "haiku"], + ["linux", "osx", "win", "ios", "iossimulator", "tvos", "tvossimulator", "maccatalyst", "freebsd", "illumos", "haiku"], out _); targetOS = portablePlatform switch @@ -218,6 +218,11 @@ private bool GetCrossgen2TargetOS(out string targetOS) "linux" => "linux", "osx" => "osx", "win" => "windows", + "ios" => "ios", + "iossimulator" => "iossimulator", + "tvos" => "tvos", + "tvossimulator" => "tvossimulator", + "maccatalyst" => "maccatalyst", "freebsd" => "freebsd", "illumos" => "illumos", "haiku" => "haiku",