CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.82k stars 1.37k forks source link

Exception thrown when using DataGrid in Project Reunion 0.8 RC #4079

Open sibille opened 3 years ago

sibille commented 3 years ago

Describe the bug

We're getting the following exception when navigating to a page with a DataGrid in an app created with Project Reunion 0.8 RC: Could not load type 'Microsoft.System.DispatcherQueueTimer' from assembly 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b'.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a new WinUI 3 Desktop App using the Project Reunion 0.8 RC vsix (or use attached SampleApp)
  2. Add a DataGrid to the MainWindow.xaml
  3. Start the App
  4. See error

Could not load type 'Microsoft.System.DispatcherQueueTimer' from assembly 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b'.

Environment

NuGet Package(s): CommunityToolkit.WinUI.UI.Controls.DataGrid

Package Version(s): 7.0.2

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio
- [ ] 2017 (version: )
- [x] 2019 (version: 16.10.2)
- [ ] 2019 Preview (version: )

DataGridExample.zip

ghost commented 3 years ago

Hello sibille, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

Kyaa-dost commented 3 years ago

@sibille have you tried using the latest version of Toolkit? FYI @azchohfi ⬆️

mrlacey commented 2 years ago

I can still reproduce this issue with 7.0.3 and WinUI 0.8.1 repro project at https://github.com/microsoft/microsoft-ui-xaml/issues/5451#issuecomment-879912886

michael-hawker commented 2 years ago

@azchohfi thoughts on this issue? I'm going to move it to our next milestone as we'll be more focused on WinUI specifically then.