What is strong naming and how do I strong name a binary?

前端 未结 5 1171
情深已故
情深已故 2020-12-18 19:50

I heard somewhere that I need to strong name my binaries before I distribute them. Any ideas what this is?

5条回答
  •  醉话见心
    2020-12-18 20:02

    Eric Lippert posted about strong signing assemblies recently:

    The purpose of a strong name is solely to ensure that when you load an assembly by name, you are loading exactly the assembly you think you are loading. You say "I want to load Frobber, version 4, that came from FooCorp". The strong name gear ensures that you actually load precisely that DLL, and not another assembly called Frobber, version 4, that came from Dr. Evil Enterprises. You can then set security policy which says "if I have an assembly from FooCorp on my machine, fully trust it." These scenarios are the only by-design purposes of strong names.

提交回复
热议问题