CommunityToolkit.Mvvm cannot work with aot
Describe the bug
i use winui3 and CommunityToolkit.Mvvm but when i x:bind a relaycommand to a command of button,then the application cannot start in the debug mode,for the detail code,please see my code
Regression
No response
Steps to reproduce
1.new a winui3 project
2.update Microsoft.WindowsAppSDK to latest
3.new a viewmodel and add a relaycommand to it
4 bind it to a button
5,start your application
6,you will find you cannot start it
Expected behavior
i can start my application without error successly
Screenshots
IDE and version
VS 2022 Preview
IDE version
Microsoft Visual Studio Enterprise 2022 (64 位) - Preview 版本 17.11.0 Preview 2.1
Nuget packages
- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [X] CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
thank you very much
more info
when i use mainwindow.appwindow.show() to show my mainwindow it will be
this is my csproj
with my a lot test,i think it myabe command error