Closed veler closed 2 months ago
Don't have triage permissions here, but this should be moved to https://github.com/microsoft/CsWinRT.
@veler thanks for reporting this. The issue has been fixed and will be available in the next preview release of the Microsoft.Windows.CsWinRT package.
cc: manodasanw
Describe the bug
In WinApp SDK 1.6 Experimental with AoT turned ON, build fails when using a property or method that returns a Dictionary with a strong type.
Steps to reproduce the bug
Project file:
And a C# file:
Expected behavior
Get it to build.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6 Experimental 1: 1.6.240531000-experimental1
Windows version
Windows 11 (22H2): Build 22621
Additional context
The issue seems to reproduce with
Dictionary<T, U>
along withIReadOnlyDictionary<T, U>
, and probably many others. It's interesting that using a value type onU
makes it work.