无法在 GAC 中安装签名组件?
我尝试通过拖放到 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 .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".