AnimatedIcon break AoT when used in a style in a class library #9980
Labels
area-AOT
bug
Something isn't working
needs-triage
Issue needs to be triaged by the area owners
team-Markup
Issue for the Markup team
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 note that I'm not even referencing anything in the class library. The mere reference reproduces the problem.
Similarly if you add a package reference WinUIEx v2.4.0, you'll see the exact same error.
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:
The text was updated successfully, but these errors were encountered: