Shared Assembly - Is Signing Required?

后端 未结 3 1989
旧巷少年郎
旧巷少年郎 2021-01-24 00:07

If I want to build a shared assembly, does that require the overhead of signing and managing key pairs? If so, is there a best practice approach to doing so?

3条回答
  •  别那么骄傲
    2021-01-24 00:36

    No, to share an assembly between applications (outside of the GAC which I don't recommend that you place it in), you don't need to sign it. You need to sign an assembly generally, when you are going to give it to a third party. Its a way of verifying the assembly is genuine and hasn't been tampered with.

    On Signing Assemblies and Best Practices

    Remember this does not mean that they share the same assembly in memory. They will have their own copies and will act independently of each other. To share information between applications, you need to use either Remoting or WCF.

提交回复
热议问题