无法在 GAC 中安装签名组件?

发布于 2024-11-14 06:19:12 字数 484 浏览 8 评论 0原文

我尝试通过拖放到 C:\WINDOWS\Assembly 目录来在 GAC 中安装强签名组件,但没有任何反应 没有错误消息,没有添加条目...什么都没有!

gacutil -I 也不工作。

即使当我拖放未签名的程序集时,我也不会收到一条错误消息,提示“程序集未强签名”。只是什么也没发生。

为什么不呢?

附加信息:

我在组件中添加了以下两行,

[assembly: System.Reflection.AssemblyVersion("1.0.0.0")]

[assembly: System.Reflection.AssemblyKeyFile("ScientificToolsLib.snk")]

我创建了强大的密钥文件,一切都构建得很好。 使用 ildasm 仔细检查我看到密钥出现在清单中。

但是我还是无法将其安装到GAC中???

谢谢克里斯

I try to install a strongly-signed component in the GAC by using drag-drop to the C:\WINDOWS\assembly directory but nothing happens
No error messages, no entry added... nothing!

gacutil -I doesn't work either.

Even when I drag-drop a non signed assembly, I don't get an error message that should say , "Assembly is not strongly signed". Just nothing happening.

Why not?

Additional info:

I added following 2 lines in my component

[assembly: System.Reflection.AssemblyVersion("1.0.0.0")]

[assembly: System.Reflection.AssemblyKeyFile("ScientificToolsLib.snk")]

I have created the strong keyfile and everything builds just fine.
Double checking with ildasm I see the key appearing in the manifest.

But still, I can't install it in the GAC???

thank you

Chris

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

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

发布评论

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

评论(1

南巷近海 2024-11-21 06:19:12

这是 .Net 4.0 程序集吗? 4.0 GAC 位于“C:\Windows\Microsoft.NET\Assembly”下。

Is this a .Net 4.0 assembly? The 4.0 GAC is under "C:\Windows\Microsoft.NET\assembly".

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