You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nativeaot] default to $(PublishAotUsingRuntimePack)=true (#9815)
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.
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
<_AndroidRuntimeCondition=" '$(PublishAot)' == 'true' and '$(UseMonoRuntime)' != 'true' ">NativeAOT</_AndroidRuntime>
30
30
<_AndroidRuntimeCondition=" '$(PublishAot)' != 'true' and '$(UseMonoRuntime)' != 'true' ">CoreCLR</_AndroidRuntime>
0 commit comments