[英]Visual Studio 2012 Package Manager Console error
When trying to install anything with the Package Manager Console, I get this error: 尝试使用Package Manager控制台安装任何内容时,出现以下错误:
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
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. 在Visual Studio 2012中安装Nuget谷歌日历API 3.0时遇到此错误。转到工具->扩展和更新->在更新下,您会找到Nuget软件包管理器。 Try to update it. 尝试更新它。 This worked for me. 这对我有用。
It works now. 现在可以使用了。 I went to the site and had to uninstall and reinstall NuGet. 我去了网站,不得不卸载并重新安装NuGet。 Thanks 谢谢
I've had a similar problem and going to the website linked in the error message simply redirects to https://www.nuget.org/ . 我遇到了类似的问题,并且转到错误消息中链接的网站只是重定向到https://www.nuget.org/ 。 Trying to install NuGet from there, did not seem to work either. 尝试从那里安装NuGet似乎也不起作用。
I then tried to update NuGet via the other suggested approach (from Selvantharajah Roshanth) 然后,我尝试通过其他建议的方法(来自Selvantharajah Roshanth)来更新NuGet。
Go to Tools -> Extension and updates -> there under updates you will find Nuget Package Manager 转到工具->扩展和更新->在更新下,您会找到Nuget软件包管理器
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. 然后,我将其卸载,转到“ 扩展和更新 ”的“ 在线”部分,并搜索Nuget。 Installed the Nuget Package Manager from here which installed the newest and latest version. 从此处安装了Nuget软件包管理器,该软件包安装了最新版本。 This resolved the error. 这样就解决了错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.