DataGrid not working on .Net6 #4535
-
Describe the bugI tried to install the DataGrid on my .Net 6.0 app and got the following error. I leave it here in the hands of the right people :)
RegressionNo response Reproducible in sample app?
Steps to reproduce
Expected behaviorI was thinking it would work seamlessly with .Net 6.0 ScreenshotsNo response Windows Build Number
Other Windows Build numberNo response App minimum and target SDK version
Other SDK versionNo response Visual Studio Version2022 Visual Studio Build Number17.1.4 Device form factorNo response Nuget packagesCommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2 Additional contextNo response Help us help youNo. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hello fatscally, 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 🙌 |
Beta Was this translation helpful? Give feedback.
-
@fatscally the min version of the toolkit currently is |
Beta Was this translation helpful? Give feedback.
-
Hello Michael! I have spent the last hour or so trying every different configuration based on your suggestion. I have played about with the Target OS version. Everything builds and runs fine until I try to use the controls:DataGrid The Microsoft version does not install: And if I change it to 10.0.17763 it will not install. Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net6.0-windows10.0.17763 (.NETCoreApp,Version=v6.0). Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763) I am wondering do I need to download and compile the source locally? It's not something I've done before. I'm more of a plain old business app developer. |
Beta Was this translation helpful? Give feedback.
-
Seems to me it's not working anywhere!...I opened VS2022 17.1.4 Open Nuget manager.
Error:
So I change the build Target to 10.0.18362 an it will install. I add the reference in the xaml:
|
Beta Was this translation helpful? Give feedback.
-
@fatscally these controls are for UWP or WinUI 3, they don't work in a WPF project directly unless you use XAML Islands. You can read more about WinUI 3 here and more about using the Toolkit with WinUI 3 here. |
Beta Was this translation helpful? Give feedback.
-
Yup! That explains it. I had my suspicions. I haven't gone down the WinUI rabbit hole yet. |
Beta Was this translation helpful? Give feedback.
@fatscally these controls are for UWP or WinUI 3, they don't work in a WPF project directly unless you use XAML Islands.
You can read more about WinUI 3 here and more about using the Toolkit with WinUI 3 here.