From 5acae40bdeffc0ffc13fb3ef97dc43034d511acc Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Thu, 1 Jun 2023 08:37:49 -0700 Subject: [PATCH] Only list supported RIDs for ILCompiler (#16545) Attempting to publish AOT on an unsupported host, or with an unsupported target RID, will produce an error in the SDK before trying to restore the ILCompiler packages. This uses the RID list in `KnownILCompilerPack` as the source of truth for what is considered supported. Then with improved error reporting (https://github.com/dotnet/sdk/pull/32943), this will give enough info to the user about why a scenario isn't supported for aot. Failing before restore does mean that advanced users who want to test with unsupported ILC packages need to use a different workaround. Instead of adding a `PackageReference`, they'll need something like this: ```xml unsupported-rid ``` --- .../targets/GenerateBundledVersions.targets | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/redist/targets/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets index d07264b27..fc9a9d6c1 100644 --- a/src/redist/targets/GenerateBundledVersions.targets +++ b/src/redist/targets/GenerateBundledVersions.targets @@ -284,12 +284,22 @@ - - + - - - + +