[英]Strong Named Assembly
I thought of learning Strong Name , created one example CacheUI project - CacheUI.dll , created strong name by using sn.exe "C:\\test.snk" and added this test.snk into Project -> Properties -> Signing -> sign the assembly -> choose a strong name key file. 我想到了学习Strong Name,创建了一个示例CacheUI项目 - CacheUI.dll,使用sn.exe“C:\\ test.snk”创建了强名称,并将此test.snk添加到Project - > Properties - > Signing - > sign中程序集 - >选择一个强名称密钥文件。 Also generated the public token key. 还生成了公共令牌密钥。 I understand that strong name consists of the assembly's identity—its simple text name, version number, and culture information (if provided)—plus a public key and a digital signature. 我知道强名称包括程序集的标识 - 简单的文本名称,版本号和文化信息(如果提供) - 加上公钥和数字签名。
You can reference to Strong-Named assembly as normal assemblies. 您可以将强名称程序集引用为普通程序集。 You should include .snk file with the Dll in your project. 您应该在项目中包含带有Dll的.snk文件。 One benefit of signed assembly is that if you have two versions of same assembly then .Net will automatically refer the latest one. 签名程序集的一个好处是,如果你有两个版本的同一个程序集,那么.Net将自动引用最新的程序集。
Delay signing is a process of generating partial signature during development with access only to the public key. 延迟签名是在开发期间生成部分签名而只访问公钥的过程。 The private key can be stored securely and used to apply the final strong name signature just before shipping the project. 私钥可以安全存储,并用于在发运项目之前应用最终的强名称签名。 Delay signing is helpful for organization to ensure that No developer can edit the code and deploy updated (malfunction) code on published environment. 延迟签名有助于组织确保没有开发人员可以编辑代码并在已发布的环境中部署更新(故障)代码。 It enforces better security. 它强制实施更好的安全性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.