多少.SNK文件,我需要?文件、SNK

2023-09-04 05:28:44 作者:骑着蜗牛追火箭

说我有几个.NET程序集,并希望签下他们每个人具有较强的名称。一个密钥对(一个.snk文件)不够或者我需要生成一个对每个组件?请问我要发布的(每个)密钥对的公钥?

Say I have several .NET assemblies and want to sign each of them with a strong name. Is one keypair (one .snk file) enough or do I need to generate one pair for each assembly? Will I have to publish the public key of (each) keypair?

推荐答案

您只需要一个.snk文件。

You need only one .snk file.

您并不需要发布公共密钥。任何一个可以使用SN.EXE使用-p开关得到一个公钥。

You don't need to publish the public key. Any one can get a public key using sn.exe with -p switch.