Windows phone 8 安装程序包时发生NuGet添加引用错误

Windows phone 8 安装程序包时发生NuGet添加引用错误,windows-phone-8,nuget-package,Windows Phone 8,Nuget Package,我无法通过Nuget安装任何软件包 Install-Package MyToolkit.Extended Attempting to resolve dependency 'MyToolkit (≥ 2.2.3.0)'. Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.166)'. Install-Package : The 'Microsoft.Bcl.Async 1.0.168' package requires N

我无法通过Nuget安装任何软件包

Install-Package MyToolkit.Extended

Attempting to resolve dependency 'MyToolkit (≥ 2.2.3.0)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.166)'.
Install-Package : The 'Microsoft.Bcl.Async 1.0.168' package requires NuGet clint version '2.8.1' or above, but the current NuGet 
version is '2.7.40911.287'.
At line:1 char:1
+ Install-Package MyToolkit.Extended
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Install-Package],       NuGetVersionNotSatisfiedException
 + FullyQualifiedErrorId :    NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

根据您收到的错误消息,我建议在安装库包之前检查并更新您的NuGet Visual Studio扩展(工具>扩展和更新)


注意:在更新Nuget VS extension之后和下载库包之前重新启动visual studio。

我刚刚遇到这个问题。即使系统Nuget已更新,.Nuget目录中的Nuget.exe也可能较旧。添加/删除扩展和在VS中玩似乎不会更新解决方案中的NuGet.exe。即使在显式更新Nuget inside VS时,解决方案的副本也会保持旧版本


进入.nuget文件夹并执行“
nuget update-self

从工具>扩展和更新>卸载nuget并重新安装,希望它能解决您的问题

更新-迁移到更新版本的nuget包还原。看见