Skip to content

Add ios-arm64, iossimulator-arm64, android-arm64, android-x64 to ILCompiler supported RIDs for .NET 11#53561

Open
Copilot wants to merge 1 commit intomainfrom
copilot/add-ios-arm64-and-android-targets
Open

Add ios-arm64, iossimulator-arm64, android-arm64, android-x64 to ILCompiler supported RIDs for .NET 11#53561
Copilot wants to merge 1 commit intomainfrom
copilot/add-ios-arm64-and-android-targets

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

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).

  • Added ios-arm64, iossimulator-arm64, android-arm64, android-x64 to Net110ILCompilerSupportedRids in GenerateBundledVersions.targets

These flow into both ILCompilerSupportedRids and ILCompilerSupportedPortableRids via the existing item group chain, enabling dotnet publish -r ios-arm64 /p:PublishAot=true without requiring workload-specific workarounds.

…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
@agocke
Copy link
Member

agocke commented Mar 23, 2026

@simonrozsival for thoughts

@agocke agocke marked this pull request as ready for review March 23, 2026 16:56
Copilot AI review requested due to automatic review settings March 23, 2026 16:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-arm64 and iossimulator-arm64 to Net110ILCompilerSupportedRids.
  • Add android-arm64 and android-x64 to Net110ILCompilerSupportedRids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants