今天打开 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 关闭时安装它: here
最佳答案
更新:最近发布的 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欲了解更多信息,或 to go directly to the VS hotfix .
注意:如果 Visual Studio 不允许您卸载扩展(“卸载”按钮被禁用),那么您可能需要使用“以管理员身份运行”重新启动 Visual Studio。
关于visual-studio-2010 - 尝试更新时 NuGet 包管理器出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8483624/