Skip to content
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

[UI] [Bug] Unhandled XamlParseException at launch in release #23

Closed
jcoliz opened this issue Jul 5, 2024 · 1 comment
Closed

[UI] [Bug] Unhandled XamlParseException at launch in release #23

jcoliz opened this issue Jul 5, 2024 · 1 comment

Comments

@jcoliz
Copy link
Owner

jcoliz commented Jul 5, 2024

Launches fine in debug

Debugger gives this:
Unhandled exception at 0x00007FFBA70552F5 (Microsoft.ui.xaml.dll) in LogoSlideMaker.WinUi.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x0000025DE5BFA6F0, 0x0000000000000002).

@jcoliz
Copy link
Owner Author

jcoliz commented Jul 5, 2024

Filed an issue here: microsoft/microsoft-ui-xaml#9793

Root cause is that trimming is causing issues. Removing trimming in the sample project makes it work. Will try in main project now.

--- 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>

@jcoliz jcoliz closed this as completed in 6e08f1c Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant