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

前端 未结 5 1155
情深已故
情深已故 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:11

    In short strong named assemblies are signed with a certificate. They play a role for the CAS (Code Access Security): what the assembly has the right to do or not to do.

    [Edit] as some of you pointed out: it is really advised to create strong assemblies as they will be more robust against attacks like introducing foreign malicious code into your application if you wrote some plug-in mechanism for example.

    This way you can limit what the 3rdparty plug-ins are allowed to do in the context of your application.

提交回复
热议问题