Replies: 3 comments
-
I'm getting the same error and I debug and find the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I encountered the same problem. May be issue with Windows App SDK? Has anyone already solved this issue? Is NativeAOT fully supported in .NET MAUI for Windows? |
Beta Was this translation helpful? Give feedback.
0 replies
-
这是来自QQ邮箱的自动回复邮件,您的邮件我已接收,如有紧急情况请电话联系,谢谢。
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have been trying to publish a MAUI app as NativeAOT. I have created a new project on Visual Studio and have also used
dotnet new maui
. In both cases,dotnet publish -f net9.0-windows10.0.19041.0 -c Release
produces an executable (and may other files) that takes a second to load but works. However, when I add<PublishAot>true</PublishAot>
I get these messages (I am using .NET 9):When I launch the executable, nothing seems to happen. Updating WebView2 seems to solve the first two issues, but not the other three. Event Viewer says that an Application Error occurred, on module
Microsoft.UI.Xaml.dll
, with exception code0xc000027b
.The same thing has happened on my Windows 11 laptop and my Windows 10 desktop. Adding
<WindowsSdkPackageVersion>10.0.19041.56</WindowsSdkPackageVersion>
and<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
also makes no difference.Edit:
<PublishTrimmed>true</PublishTrimmed>
also breaks the program.What can I do?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions