尝试更新时出现 NuGet 包管理器错误 [英] NuGet Package Manager errors when trying to update

查看:40
本文介绍了尝试更新时出现 NuGet 包管理器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天打开 VS2010,扩展管理器通知我 NuGet 包管理器的更新.

Opening VS2010 today, the extension manager notified me of an update for 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

我也尝试在 VS2010 关闭时通过此页面安装它:这里

I have also tried to install it while VS2010 is closed via this page: here

推荐答案

更新:最近发布的 NuGet 2.0 也可能需要先卸载旧版本的 NuGet.

Update: The recently released NuGet 2.0 also may require uninstalling an older version of NuGet first.

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

From the NuGet 2.0 Release Notes: (http://docs.nuget.org/docs/release-notes/nuget-2.0)

已知安装问题

如果您运行的是 VS 2010 SP1,如果您安装了旧版本,则在尝试升级 NuGet 时可能会遇到安装错误.

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.

解决方法是简单地卸载 NuGet,然后从 VS 扩展库安装它.请参阅http://support.microsoft.com/kb/2581019了解更多信息,或直接转到 VS 修补程序.

The workaround is to simply uninstall NuGet and then install it from the VS Extension Gallery. See http://support.microsoft.com/kb/2581019 for more information, or to go directly to the VS hotfix.

注意:如果 Visual Studio 不允许您卸载扩展(卸载按钮已禁用),那么您可能需要使用以管理员身份运行"重新启动 Visual Studio.

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."

这篇关于尝试更新时出现 NuGet 包管理器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆