什么是“强名"?在.NET中? [英] What is a "STRONG NAME" in .NET?

查看:57
本文介绍了什么是“强名"?在.NET中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
什么是强命名以及如何命名强名是二进制文件?

实际上,昨天我参加了一次采访.在那里,他们问了我一个关于强名的问题.我无法猜测是什么?请对此进行解释.谢谢.

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.

推荐答案

来自 MSDN :

一个强名包括程序集的身份-简单的文本名称,版本号和区域性信息(如果提供)-加上一个公钥和一个数字签名.

A strong name consists of the assembly's identity — its simple text name, version number, and culture information (if provided) — plus a public key and a digital signature.

您可以使用强命名来确保在加载DLL时获得的正是您所期望的DLL,而不是碰巧具有相同名称的其他DLL.

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.

这篇关于什么是“强名"?在.NET中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆