SettingsExpander or SettingsCard crashes the application when NativeAOT enabled #568
Closed
3 of 24 tasks
Labels
Milestone
Describe the bug
When I enable NativeAOT by the following code in my project file:
And defined a
SettingsExpander
(or aSettingsCard
) in a really simple way:It crashes on startup, getting an exception:
Microsoft.UI.Xaml.Markup.XamlParseException:“XAML parsing failed.”
Steps to reproduce
Expected behavior
The application should not crash when NativeAOT enabled.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
Windows 11 23H2 (Build 22631)
App minimum and target SDK version
Other SDK version
Windows 11 ? (Build 22621)
Visual Studio Version
2022
Visual Studio Build Number
17.12.1
Device form factor
Desktop
Additional context
I tried to use
TrimmerRootDescriptor
in my project file to preserve all things inCommunityToolkit.WinUI.Controls.SettingsControls
But it don't work.
Help us help you
No, I'm unable to contribute a solution.
The text was updated successfully, but these errors were encountered: