简体   繁体   English

Visual Studio 2012程序包管理器控制台错误

[英]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.

相关问题 Visual Studio 2012程序包管理器控制台名称不能以&#39;&lt;&#39;字符开头 - Visual studio 2012 package manager console Name cannot begin with the '<' character Visual Studio 包管理器控制台的键盘快捷键? - Keyboard Shortcut for the Visual Studio Package Manager Console? 如何使用NuGet软件包管理器控制台在Visual Studio 2012 Pro上安装OpenPop.NET? - How can i install OpenPop.NET on my visual studio 2012 pro using the NuGet package manager console? Visual Studio 2012 的 Nuget 包管理器根本没有打开 - Nuget Package Manager for Visual Studio 2012 not opening at all 库包管理器菜单选项在Visual Studio 2012中不起作用 - Library Package Manager menu options not working in Visual Studio 2012 在扩展中以编程方式访问visual studio的powershell控制台(包管理器控制台) - Access the powershell console (package manager console) of visual studio programmatically in an extension 在Visual Studio 2012中编写Nuget软件包控制台的脚本 - Scripting the Nuget Package Console inside Visual Studio 2012 在 Visual Studio 中使用 DTE 的包管理器控制台自动化 - Package Manager Console Automation using DTE in Visual Studio 在Visual Studio Nuget包管理器控制台中中止“unclosed”powershell命令 - Aborting an “unclosed” powershell command in Visual Studio Nuget Package manager console 在 Visual Studio 2012 中安装 package Swashbuckle/swagger 时出错 - Error at installing package Swashbuckle/swagger in Visual Studio 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM