Closed dotMorten closed 1 month 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.
cc. @manodasanw FWI this seems possibly related to CsWinRT, as it only crashes with PublishAot
set 🤔
Rebuilding everything with 1.6 and CSWinRT added, the problem does go away. The error message you get is pretty terrible though. CSWinRT does point out the need for partial added, but that's only if you realize you need CSWinRT explicitly referenced.
Describe the bug
I ported the TitleBar control from the preview to C#, but my app started crashing in AoT mode. I isolated it to the AnimatedIcon control used in a style.
When launching the app I'm met with the following runtime exception:
This only happens when PublishAoT=true.
Steps to reproduce the bug
Also more curious is that the callstack points to NavigationView as well, and removing that from MainPage also seem to avoid the crash.
Expected behavior
No crash :-)
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
Windows 11 (22H2): Build 22621
Additional context
Stacktrace: