Today, ProcessFrameworkReferences only adds the runtime pack for NativeAOT for the RID specified in RuntimeIdentifier. This causes issues when using dotnet restore -r <rid>, as that sets RuntimeIdentifiers, not RuntimeIdentifier. As a result, dotnet restore doesn't restore the NativeAOT runtime pack and then dotnet publish --no-restore -r <rid> will fail in an obscure fashion.