简体   繁体   English

尝试更新时NuGet Package Manager出错

[英]NuGet Package Manager errors when trying to update

Opening VS2010 today, the extension manager notified me of an update for NuGet Package Manager. 今天打开VS2010,扩展管理器通知了我NuGet Package Manager的更新。

During the install, I get an 'Installation Failed' with an option to view the log. 在安装过程中,我收到一个“安装失败”,其中包含查看日志的选项。

The key error message I see in that log file is: 我在该日志文件中看到的关键错误消息是:

The signature on the update version of 'NuGet Package Manager' does not match 
the signature on the installed version. Therefore, Extension Manager cannot 
install the update.

The version numbers I am upgrading from/to are as follows. 我正在升级的版本号如下。

Current Version: 1.5.20902.9026  
New Version: 1.6.21205.9031

I have also tried to install it while VS2010 is closed via this page: here 我也尝试安装它,而VS2010通过此页面关闭: 这里

Update: The recently released NuGet 2.0 also may require uninstalling an older version of NuGet first. 更新:最近发布的NuGet 2.0也可能需要先卸载旧版本的NuGet。

From the NuGet 2.0 Release Notes: ( http://docs.nuget.org/docs/release-notes/nuget-2.0 ) 来自NuGet 2.0发行说明:( http://docs.nuget.org/docs/release-notes/nuget-2.0

Known Installation Issue 已知安装问题

If you are running VS 2010 SP1, you might run into an installation error when attempting to upgrade NuGet if you have an older version installed. 如果您运行的是VS 2010 SP1,则在尝试升级NuGet时可能会遇到安装错误(如果您安装了旧版本)。

The workaround is to simply uninstall NuGet and then install it from the VS Extension Gallery. 解决方法是简单地卸载NuGet,然后从VS Extension Gallery安装它。 See http://support.microsoft.com/kb/2581019 for more information, or to go directly to the VS hotfix . 有关详细信息,请参阅http://support.microsoft.com/kb/2581019 ,或直接转到VS修补程序

Note: If Visual Studio won't allow you to uninstall the extension (the Uninstall button is disabled), then you likely need to restart Visual Studio using "Run as Administrator." 注意:如果Visual Studio不允许您卸载扩展(禁用“卸载”按钮),则可能需要使用“以管理员身份运行”重新启动Visual Studio。

Here is the VisualStudio/Express hotfix for this issue... http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654 以下是此问题的VisualStudio / Express修补程序... http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654

There's not much on the page describing what it's for, but it's linked to from here that does provide some description... http://connect.microsoft.com/VisualStudio/Downloads 页面上没有太多描述它的用途,但它与此处的链接确实提供了一些描述... http://connect.microsoft.com/VisualStudio/Downloads

I have installed this hotfix on both the Professional (on Win 7 Pro 32 bit) and Express versions (on Windows 7 Ultimate 64 bit) and the NuGet update behaves as it should. 我在Professional(Win 7 Pro 32位)和Express版本(Windows 7 Ultimate 64位)上都安装了此修补程序,NuGet更新的行为应该如此。

When i originally had the problem, Joe Doyle's answer solved it. 当我最初遇到问题时,Joe Doyle的答案解决了这个问题。

However, going to version 1.8, I cannot see a listing for nuget in Programs and Features . 但是,转到1.8版本,我无法在“ Programs and Features看到nuget列表。

So from within Visual Studio / Tools / Extension Manager . 所以从Visual Studio / Tools / Extension Manager
Uninstalled NUGET. 卸载了NUGET。
Restarted VS Return to the Extension manager and install NUGET. 重新启动VS返回扩展管理器并安装NUGET。

After uninstalling Nuget from Control panel, Go to C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft Corporation\\NuGet Package Manager\\ or the location matching similar pattern based upon windows bit version, and delete the folder 1.0.11220.104 . 从控制面板卸载Nuget后,转到C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft Corporation\\NuGet Package Manager\\或基于Windows位版本匹配类似模式的位置,并删除文件夹1.0.11220.104 And, if you install it now, you wont' get the same problem. 而且,如果你现在安装它,你不会遇到同样的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM