开发者

Strong name is must

Is it necessary to provide strong name to 开发者_JAVA百科an assembly before putting it in GAC?


Yes.

See the MSDN docs on it:

In order to install an assembly in the GAC, you must give the assembly a strong (that is, globally unique) name. Actually, it is not a name but a cryptographic hash key, or signature. The strong name ensures correct component versioning, which helps to prevent components that have the same name from conflicting with each other or being incorrectly used by a consuming application.


I suggest you look here for a very good explanation about strong naming and signing. In the article it says you can delay the signing of an assembly and still register the assembly into the GAC.


Yes. Part of the reason for doing this is so that you can guarantee that nobody has installed a malicious piece of code that is mimicking a legitimate DLL. Imagine the havoc it somebody replaced System.Data with a piece of malware.


Yes, it is required to give the assembly a strong name in order to install it in the GAC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜