Add ios-arm64, iossimulator-arm64, android-arm64, android-x64 to ILCompiler supported RIDs for .NET 11#53561
Add ios-arm64, iossimulator-arm64, android-arm64, android-x64 to ILCompiler supported RIDs for .NET 11#53561
Conversation
…10ILCompilerSupportedRids Co-authored-by: agocke <515774+agocke@users.noreply.github.com> Agent-Logs-Url: https://github.com/dotnet/sdk/sessions/c8337875-a00f-4983-895b-55b5d016f48c
|
@simonrozsival for thoughts |
There was a problem hiding this comment.
Pull request overview
Updates the SDK’s bundled ILCompiler (NativeAOT) RID allowlist for .NET 11 so cross-compiling to additional iOS and Android targets is recognized as supported, aligning SDK validation with the existence of corresponding NativeAOT runtime packs.
Changes:
- Add
ios-arm64andiossimulator-arm64toNet110ILCompilerSupportedRids. - Add
android-arm64andandroid-x64toNet110ILCompilerSupportedRids.
|
@copilot please add a simple unit test that only runs on macOS and publishes for ios-arm64 with PublishAot. It should succeed with no warnings. |
Agent-Logs-Url: https://github.com/dotnet/sdk/sessions/d114c42e-1589-4385-b6bb-bd273d9c0b66 Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Added in 2e9e0d5. The test uses |
NativeAOT cross-compilation to iOS and Android targets fails because the SDK doesn't recognize these as valid ILCompiler target RIDs, even though the corresponding
Microsoft.NETCore.App.Runtime.NativeAOT.<RID>packages exist (ios/iossimulator since net8.0, android since net10.0).ios-arm64,iossimulator-arm64,android-arm64,android-x64toNet110ILCompilerSupportedRidsinGenerateBundledVersions.targetsNativeAot_publishes_for_ios_arm64_on_macos) that publishes a HelloWorld project forios-arm64withPublishAot=trueand verifies it succeeds with no warningsThese flow into both
ILCompilerSupportedRidsandILCompilerSupportedPortableRidsvia the existing item group chain, enablingdotnet publish -r ios-arm64 /p:PublishAot=truewithout requiring workload-specific workarounds.