Description
If you try to initialize the array with collection expression you get an unhandled win32 exception. If you try with a Builder, you get an ArgumentException and a an additional message saying "WinRT information: Argument 'source' is not a supported vector."
Repro repo
Steps To Reproduce
Set PublishAot to true, create an ImmutableArray and bind it.
Expected Behavior
To work.
Version Info
CsWinRT 2.1.3
.NET SDK 10.0.302
Windows SDK 26100.8249
Additional Context
No response
Description
If you try to initialize the array with collection expression you get an unhandled win32 exception. If you try with a Builder, you get an ArgumentException and a an additional message saying "WinRT information: Argument 'source' is not a supported vector."
Repro repo
Steps To Reproduce
Set PublishAot to true, create an ImmutableArray and bind it.
Expected Behavior
To work.
Version Info
CsWinRT 2.1.3
.NET SDK 10.0.302
Windows SDK 26100.8249
Additional Context
No response