今天打开VS2010,扩展经理告诉我NuGet Package Manager的更新 .
在安装过程中,我得到一个“安装失败”,其中包含查看日志的选项 .
我在该日志文件中看到的关键错误消息是:
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通过此页面关闭:here
4 回答
Update: 最近发布的NuGet 2.0也可能需要先卸载旧版本的NuGet .
来自NuGet 2.0发行说明:(http://docs.nuget.org/docs/release-notes/nuget-2.0)
Known Installation Issue
如果您运行的是VS 2010 SP1,则在尝试升级NuGet时可能会遇到安装错误(如果您安装了旧版本) .
解决方法是简单地卸载NuGet,然后从VS Extension Gallery安装它 . 有关更多信息,请参见http://support.microsoft.com/kb/2581019,或to go directly to the VS hotfix .
注意:如果Visual Studio不允许您卸载扩展(禁用“卸载”按钮),则可能需要使用“以管理员身份运行”重新启动Visual Studio .
以下是此问题的VisualStudio / Express修补程序... http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654
有's not much on the page describing what it' s for,但是它从这里链接到确实提供了一些描述...... http://connect.microsoft.com/VisualStudio/Downloads
我在Professional(Win 7 Pro 32位)和Express版本(Windows 7 Ultimate 64位)上都安装了此修补程序,NuGet更新的行为应该如此 .
当我最初遇到问题时,Joe Doyle的答案解决了这个问题 .
但是,转到1.8版本,我无法在
Programs and Features
中看到nuget的列表 .所以从
Visual Studio / Tools / Extension Manager
.卸载了NUGET .
重新启动VS返回扩展管理器并安装NUGET .
从控制面板卸载Nuget后,转到
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\
或基于Windows位版本匹配类似模式的位置,并删除文件夹1.0.11220.104
. 而且,如果你现在安装它,你不会遇到同样的问题 .