-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Cross-OS native compilation is not supported. #109284
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I can repro this issue at Android platform on the latest 17.11.0 Preview 5.0 (8.0.61&8.0.70). |
NativeAOT is not yet supported for Android (such as .NET MAUI applications). Java interop is not implemented. You can use For tracking .NET MAUI / NativeAOT support you can follow these:
I will transfer this issue to dotnet/runtime, in case they want to comment about the error:
It seems like if NativeAOT were supported for Android, we'd want builds to work on Windows, Mac, & Linux. |
@jonathanpeppers For WinUI 3, the AOT support will works in latest SDK version? |
NativeAOT works on Windows and iOS right now. "Mono AOT" works for Android, iOS, etc. if you haven't opted into NativeAOT. |
Assuming the necessary native bits are available for each of these platforms we'll make it work. I don't know offhand whether the Android native toolchain is installable on, say, Mac OS. |
Description
It's a new project. No any changes.
Once I switch < PublishAot >true< /PublishAot > error below.
Severity Code Description Project File Line Suppression State
net8.0-android;Error (active) Cross-OS native compilation is not supported. MauiTestAot(net8.0-android) .nuget\packages\microsoft.dotnet.ilcompiler\8.0.7\build\Microsoft.NETCore.Native.Publish.targets 60
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.61 SR6.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: