Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot add MVVM Light libraries through NuGet

I'm trying to add MVVM Light to an existing project through NuGet but I get this error message:

Attempting to resolve dependency 'MvvmLightLibs (≥ 4.2.30.0)'.
Attempting to resolve dependency 'CommonServiceLocator (≥ 1.2)'.
Successfully installed 'CommonServiceLocator 1.2'.
Successfully installed 'MvvmLightLibs 4.3.31.1'.
Successfully installed 'MvvmLight 4.2.30.0'.
Successfully uninstalled 'CommonServiceLocator 1.2'.
Install failed. Rolling back...
Could not install package 'CommonServiceLocator 1.2'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.0,Profile=Client', but the package
does not contain any assembly references that are compatible
with that framework. For more information, contact the package
author.

I've tried retargeting my project to .NET framework 4.0, 4.0 client profile, and 4.5. Any ideas? I wasn't having this issue as recently as two weeks ago.

like image 492
MoebiusStripMall Avatar asked Dec 07 '22 02:12

MoebiusStripMall


1 Answers

Had the same Problem today. Try to install the newest Version of Nuget in your Visual Studio Addins first !

like image 161
KroaX Avatar answered Mar 14 '23 23:03

KroaX