什么是“强名称”?在.NET 中?
可能的重复:
什么是强命名以及如何操作二进制文件的强名称?
事实上,昨天我参加了一个采访。在那里他们问了我 1 个关于强名称的问题。我无法猜出它是什么?请解释一下这一点。谢谢。
Possible Duplicate:
What is strong naming and how do I strong name a binary?
Actually, yesterday I attended an interview. There they asked me 1 question about strong name. I was not able to guess what it is? please explain about this. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 MSDN:
您可以使用强命名来确保加载 DLL 时您得到的正是您所期望的 DLL,而不是碰巧具有相同名称的其他 DLL。
From MSDN:
You can use strong naming to ensure that when you load a DLL you get exactly the DLL you were expecting and not some other DLL that happens to have the same name.
“强命名”程序集是用密钥签名的程序集,以确保其唯一性(例如,在 GAC 中)。有关详细信息,请参阅此处:
创建和使用强命名程序集
A 'strongly named' assembly is one that has been signed with a key to ensure its uniqueness (for example, in the GAC). See here for more details:
Creating and Using Strong Named Assemblies