升级 Nuget 应用程序时出现问题 - 数字签名不匹配
当我尝试升级 NUGET 软件包(例如 Productivity Power Tools)时,我收到一个“下载并安装”消息框,显示“数字签名不匹配”。 该消息还说;
已安装的“生产力电动工具”版本已签名,但更新版本的签名无效。因此 Extension Manager 无法安装更新。
如果您信任该更新,请在卸载已安装的版本后再次尝试安装。
对于后一点,我接受了建议,而且效果很好。 但这个问题也是我在使用 Nuget 包管理器时遇到的问题。我想知道我是否会在每次软件包升级时得到这个。
还有其他人有这个问题吗?有谁知道如何解决这个问题?
When I attempt to upgrade a NUGET package, for example Productivity Power Tools, I get a Download and Install messagebox that says "Digital Signature Mismatch".
The message also says;
The installed version of 'Productivity Power Tools' is signed but the update version has an invalid signature. Therefore Extension Manager cannot install the update.
If you trust the update, try the installation again after you uninstall the installed version.
On the latter point I take the advice and it works.
But this problem is one I have with the Nuget Package Manager as well. I am wondering if I will get this on every package upgrade.
Does anyone else have this problem, and does anyone know how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 nuget 签名不匹配:
如果无法卸载它,请转到:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager
并删除此文件夹。
删除此内容的风险由您自行承担!
For the nuget signature mismatch:
if you are not able to uninstall it go to:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager
and remove this folder.
deleting this is at your own risk!
最终,Microsoft 承认这是 Windows XP 中的一个错误。
截至该支持文章发布之日(2012 年 2 月),他们表示您必须手动卸载并重新安装该扩展。或者您可以通过此处描述的一些复杂过程来获取修补程序(如果您有多台计算机,这可能是个好主意)。
Eventually, Microsoft acknowledged that it's a bug in Windows XP.
As of the release date of that support article (February 2012), they say that you have to manually uninstall and reinstall the extension. Or you can go through some convoluted process described there to get a hotfix (maybe a good idea if you have multiple machines).
我认为您将 NuGet 包与 Visual Studio 扩展混淆了。
Productivity Power Tools 是一个扩展,通过扩展管理器进行管理。与 NuGet 无关。
如果更新或卸载扩展时遇到问题,应以管理员身份运行 Visual Studio,然后卸载扩展。重新启动 VS 但以普通用户身份运行并尝试重新安装扩展。这应该允许您将来更新扩展而无需以管理员身份运行。
希望这有帮助。
I think you are confusing NuGet packages with Visual Studio Extensions.
Productivity Power Tools is an extension and managed through Extension Manager. It has nothing to do with NuGet.
If you have problems updating or uninstalling extensions, you should run Visual Studio as Administrator, then uninstall the extension. Restart VS but run as a normal user and try re-installing the extension. This should allow you to update extensions in the future without running as Administrator.
Hope this helps.