Closed jcoliz closed 2 months ago
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. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Ok, props to @github-actions bot who found the duplicate bug that I couldn't.
--- a/WinUI3.Hello/Properties/PublishProfiles/win-x64.pubxml
+++ b/WinUI3.Hello/Properties/PublishProfiles/win-x64.pubxml
@@ -14,6 +14,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<PublishTrimmed Condition="'$(Configuration)' == 'Debug'">False</PublishTrimmed>
- <PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
+ <PublishTrimmed Condition="'$(Configuration)' != 'Debug'">False</PublishTrimmed>
</PropertyGroup>
</Project>
Helped me as well.
Closing as duplicate of #9675.
Describe the bug
Creating a brand new solution with the "Blank App, Packaged (WinUI3 in Desktop)" (C#) fails to launch when built in release config.
I made a repro repo here: https://github.com/jcoliz/WinUI3.Hello.
Steps to reproduce the bug
Result: Unhandled exception at 0x00007FFBA70552F5 (Microsoft.ui.xaml.dll) in WinUI3.Hello.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001D814FC4330, 0x0000000000000002).
Debug output: Exception thrown at 0x00007FFBF082F39C (KernelBase.dll) in WinUI3.Hello.exe: WinRT originate error - 0x802B000A: 'The text associated with this error code could not be found.'.
Call stack
Just for fun, I repro'd this on an Arm64 device. Same result. Interesting that the call stack is deeper.
Unhandled exception at 0x00007FFDC46DA1E8 (Microsoft.ui.xaml.dll) in WinUI3.Hello.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x000001B997A89860, 0x0000000000000002). Exception thrown at 0x00007FFE2929CFA4 (KernelBase.dll) in WinUI3.Hello.exe: WinRT originate error - 0x802B000A : 'The text associated with this error code could not be found.'.
Call stack
Expected behavior
App build in release config should behave just like app build in debug config. Shouldn't crash on launch.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001
Windows version
Windows 11 (22H2): Build 22621
Additional context