What is a “STRONG NAME” in .NET? [duplicate]

元气小坏坏 提交于 2019-12-03 08:16:10

问题


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.


回答1:


From 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.

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.




回答2:


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



来源:https://stackoverflow.com/questions/2982780/what-is-a-strong-name-in-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!