Replies: 1 comment
-
I'm getting the same error and I debug and find the problem. |
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.What can I do?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions