How to install MVVMLight via nuget

I need to add MVVM Light toolkit to an existing project. I run the nuget command. My project is in version 4.5 of the Framework. I got this error

Attempting to resolve dependency 'MvvmLightLibs (≥ 5.0.2.0)'.
Install-Package : 'MvvmLightLibs' already has a dependency defined for 'CommonServiceLocator'.
At line:1 char:16
+ Install-Package <<<<  MvvmLight
+ CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPa 
ckageCommand

I installed through extensions and updates, and it was installed, but when I tried to create a new mvvm project using the visual exploration wizard, such a dependency error occurs.

How to solve this problem.

+4
source share
2 answers

Install the latest version of NuGet

+12
source

i agree with Site. solved the same problem by updating to the latest version of NuGet

0
source

Source: https://habr.com/ru/post/1569821/


All Articles