Visual Studio 2012 Package Manager Console error

北城余情 提交于 2019-12-08 14:32:18

问题


When trying to install anything with the Package Manager Console, I get this error:

Install-Package : The schema version of 'Microsoft.Bcl' is incompatible with version 2.0.30625.9003 of      NuGet. Please upgrade NuGet to the latest version from 
http://go.microsoft.com/fwlink/?LinkId=213942.
At line:1 char:1
+ Install-Package Moment.js
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

回答1:


I got this error when installing Nuget google calendar API 3.0, in Visual studio 2012. Go to Tools -> Extension and updates -> there under updates you will find Nuget Package Manager. Try to update it. This worked for me.




回答2:


It works now. I went to the site and had to uninstall and reinstall NuGet. Thanks




回答3:


I've had a similar problem and going to the website linked in the error message simply redirects to https://www.nuget.org/. Trying to install NuGet from there, did not seem to work either.

I then tried to update NuGet via the other suggested approach (from Selvantharajah Roshanth)

Go to Tools -> Extension and updates -> there under updates you will find Nuget Package Manager

There was no update option available there.

I then uninstalled it, went to the Online section of the "Extensions and Updates" and searched for Nuget. Installed the Nuget Package Manager from here which installed the newest and latest version. This resolved the error.



来源:https://stackoverflow.com/questions/21766168/visual-studio-2012-package-manager-console-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!