Closed zipgenius closed 9 months ago
I can't really tell from what you're showing. Could you attach a small simple project that reproduces the issue?
Went through the steps a few times without being able to reproduce. Also looked through changes between 2.1 and 2.2 and don't see anything obvious that points to potential new cast exceptions. Lastly the screenshot above seem to indicate the exception is coming from native code in WinRT.Runtime.dll.
At this point I'm not able to move forward on the issue. I'm going to close it, but if you have a simple project that reproduces the issue, feel free to add it here and reopen.
The same issue zipgenius had, happened to me. I suspect it is the SDK retargeting. In my case, WinAppSDK 1.3.x was never stable either, but 1.2.x and 1.4.x both are.
I created a new Winui3 Packaged app and added WinUIEx 2.2.0. I also upgraded the following:
I modified my
MainWindow.xaml.cs
as follows:and
MainWindow.xaml
as follows:When I try to run the app, I get this error:
Am I missing anything?