Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nativeaot] default to $(PublishAotUsingRuntimePack)=true #9815

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

jonathanpeppers
Copy link
Member

Context: https://github.com/xamarin/xamarin-macios/blob/d4baff4c6847a413e6a9c60089edfff50611ea9b/dotnet/targets/Xamarin.Shared.Sdk.props#L192

$(PublishAotUsingRuntimePack) needs to be true for any NativeAOT scenario on mobile. This setting is more useful for desktop platforms, as you aren't cross-compiling anything. Desktop builds can potentially use the packs from the .NET SDK as the host and target match.

xamarin/xamarin-macios also defaults $(PublishAotUsingRuntimePack)=true when $(PublishAot)=true, so we should be safe to follow suit.

Context: https://github.com/xamarin/xamarin-macios/blob/d4baff4c6847a413e6a9c60089edfff50611ea9b/dotnet/targets/Xamarin.Shared.Sdk.props#L192

`$(PublishAotUsingRuntimePack)` needs to be `true` for any NativeAOT
scenario on mobile. This setting is more useful for desktop platforms,
as you aren't cross-compiling anything. Desktop builds can potentially
use the packs from the .NET SDK as the host and target match.

xamarin/xamarin-macios also defaults `$(PublishAotUsingRuntimePack)=true`
when `$(PublishAot)=true`, so we should be safe to follow suit.
@jonathanpeppers jonathanpeppers mentioned this pull request Feb 20, 2025
10 tasks
@jonathanpeppers jonathanpeppers marked this pull request as ready for review February 21, 2025 14:17
@jonathanpeppers jonathanpeppers merged commit 20bdd5c into main Feb 21, 2025
58 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/PublishAotUsingRuntimePack branch February 21, 2025 16:10
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.

2 participants