Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

I'm having trouble installing Community.Toolkit.MVVM in VS 2022 ver. 17.11.3

$
0
0

when I go to the NuGet Package Manager in VS 2022 and download CommunityToolkit.MVVM, it gives me the followin error message:

This version of the MVVM Toolkit requires'Microsoft.Windows.SDK.NET.Ref' version '10.0.19041.38' or later.Please update to .NET SDK 8.0.109, 8.0.305 or 8.Comm0.402 (or later).Alternatively, use a temporary 'Microsoft.Windows.SDK.NET.Ref'reference, which can be done by setting the 'WindowsSdkPackageVersion'property in your .csproj file. For your project configuration, it isrecommended to set the package version to '10.0.19041.41'.

And it's rather difficult to follow how to fix. And it seems without this package, I cannot add any method to my view model file and access it from the XAML file using the Command={Binding MetodPrgCommand} because when I try and add [RelayCommand] above the public method, there's a red error line under the words RelayCommand.

So is there a way this can be explained a little simpler? Thanks.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>