-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.InvalidCastException on CollectionView enumeration #592
Comments
@stevenbrix is this another manifestation of the cswinrt issue? |
I have checked this issue in Preview 3 and it is still reproduced. |
@angelazhangmsft this looks like a C#/WinRT issue that was missed for Preview3. Would you mind taking a look? |
I'm able to repro this error with WinUI Preview 3. I also tried updating the FrameworkReference as follows and it still repros with same exception in WinRT.Runtime <ItemGroup>
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref"
RuntimeFrameworkVersion="10.0.18362.11-preview" />
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref"
TargetingPackVersion="10.0.18362.11-preview" />
</ItemGroup> |
Thanks for clarifying, is this something that can make the first .NET5 servicing release in December? |
Describe the bug
I create CollectionViewSource and enumerate items in View.
Code failed with "System.InvalidCastException: 'Specified cast is not valid.'" exception
Exception details:
Call stack:
Version Info
Windows 10 1903 (OS Build 18362.1082)
NuGet package version:
WinUI 3.0.0-preview2.200713.0
Windows app type:
The text was updated successfully, but these errors were encountered: