升级 Nuget 应用程序时出现问题 - 数字签名不匹配

发布于 2024-11-24 05:09:16 字数 311 浏览 0 评论 0原文

当我尝试升级 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 技术交流群。

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

发布评论

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

评论(3

满栀 2024-12-01 05:09:16

对于 nuget 签名不匹配:

  1. 关闭所有 Visual Studio 2010 实例。
  2. 以管理员身份再次打开 Visual Studio
  3. 转到“工具”> “扩展管理器”
  4. 卸载 NuGet
  5. 再次安装 NuGet。

如果无法卸载它,请转到:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager

并删除此文件夹。
删除此内容的风险由您自行承担!

For the nuget signature mismatch:

  1. Close all visual studio 2010 instances.
  2. Open visual studio again as administrator
  3. Go to "Tools" > "Extension Manager"
  4. Uninstall NuGet
  5. Install NuGet again.

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!

樱桃奶球 2024-12-01 05:09:16

最终,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).

巾帼英雄 2024-12-01 05:09:16

我认为您将 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.

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