-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[UWP] UseDotNetNativeToolchain has no effect for ARM64 and is always true #54766
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
If I try to manually force
|
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Hi @xperiandri, .NET native is required for ARM64 and so |
@tommcdon, OK, where do I need to open an issue about my reproduction? |
Hi @xperiandri. Sorry to hear that the app is crashing on ARM64. Is this related to #54765 or a different issue? |
Yes, it is |
It crushes locally as well |
This is the issue that has a mention that F# is already have to work |
F# is unsupported on .NET native. We added the gatekeeper opt-out switch to allow .NET native to compile F# apps to enable customers to try it out. |
So why ARM64 must use native toolchain only? |
The .NET native toolchain ships a special version of the .NET Core runtime for the F5 developer inner loop performance reasons. ARM64 support was added to .NET native 2.2. The version of .NET core used with the toolchain does not support ARM64. |
I don't understand from your answer why .NET native cannot be disabled for ARM64 |
The toolchain does not ship an ARM64 coreclr, so .NET native is the only option for ARM64 |
Can't it be shipped separately? |
I try to create AppxBundle from UWP project with disabled UseDotNetNativeToolchain
<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
AppxBundlePlatforms=x86|x64|ARM|ARM64
Because enabling
UseDotNetNativeToolchain
causes compiler crash on x86 and runtime crash on all the other platforms.Reproduction https://github.com/xperiandri/Elmish.Uno/tree/UseDotNetNativeToolchain (Tag UseDotNetNativeToolchain)
Project
SolutionTemplate
So that I disabled it.
https://github.com/xperiandri/Elmish.Uno/tree/template_fixes (branch template_fixes)
However, build fails
because ARM64 still builds with
UseDotNetNativeToolchain=true
You can ensure that by build logs. And by that in Visual Studio in project settings on Build tab if you change the platform, on ARM64 UseDotNetNativeToolchain checkbox always becomes checked. Even if you uncheck it, save, go to another platform and back.
After I changed
AppxBundlePlatforms=x86|x64|ARM|ARM64
toAppxBundlePlatforms=x86|x64|ARM
build succeededThe text was updated successfully, but these errors were encountered: