尝试更新时 NuGet 包管理器出现错误

发布于 2024-12-21 06:16:02 字数 552 浏览 0 评论 0原文

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

在安装过程中,我收到“安装失败”消息,并可以选择查看日志。

我在该日志文件中看到的关键错误消息是:

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.

我要升级的版本号如下。

Current Version: 1.5.20902.9026  
New Version: 1.6.21205.9031

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

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

探春 2024-12-28 06:16:02

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

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

已知安装问题

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

解决方法是简单地卸载 NuGet,然后从 VS 扩展库安装它。有关详细信息,请参阅 http://support.microsoft.com/kb/2581019,或直接进入VS修补程序

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

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

From the NuGet 2.0 Release Notes: (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.

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.

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

场罚期间 2024-12-28 06:16:02

这是针对此问题的 VisualStudio/Express 修补程序...
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx ?DownloadID=38654

页面上没有太多描述它的用途,但从这里链接到它确实提供了一些描述......
http://connect.microsoft.com/VisualStudio/Downloads

我已在两台计算机上安装了此修补程序Professional(在 Win 7 Pro 32 位上)和 Express 版本(在 Windows 7 Ultimate 64 位上)和 NuGet 更新的行为正常。

Here is the VisualStudio/Express hotfix for this issue...
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

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.

┊风居住的梦幻卍 2024-12-28 06:16:02

当我最初遇到这个问题时,乔·多伊尔的回答解决了它。

但是,到了 1.8 版本,我在程序和功能中看不到 nuget 列表。

因此,从 Visual Studio / Tools / Extension Manager 中开始。
已卸载 NUGET。
重启VS
返回扩展管理器并安装 NUGET。

When i originally had the problem, Joe Doyle's answer solved it.

However, going to version 1.8, I cannot see a listing for nuget in Programs and Features.

So from within Visual Studio / Tools / Extension Manager.
Uninstalled NUGET.
Restarted VS
Return to the Extension manager and install NUGET.

丢了幸福的猪 2024-12-28 06:16:02

从控制面板卸载 Nuget 后,转到 C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\ 或基于类似模式的位置Windows位版本,删除文件夹1.0.11220.104。而且,如果您现在安装它,就不会遇到同样的问题。

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. And, if you install it now, you wont' get the same problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文