简体   繁体   English

强名命的大会

[英]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. 我知道强名称包括程序集的标识 - 简单的文本名称,版本号和文化信息(如果提供) - 加上公钥和数字签名。

  1. How can i Reference to Strong-Named Assembly? 我如何参考强名称组装?
  2. What is delay sign and how it's helpful for developers ? 什么是延迟标志以及它对开发人员有何帮助?

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.

相关问题 强签名与为程序集命名的强相同吗? - Is strong signed the same as strong named for an assembly? 强大的命名组件和未签名的程序集 - Strong named assembly alongside unsigned assembly 为什么Visual Studio要求一个强命名程序集? - Why is Visual Studio asking for a strong named assembly? 篡改强大的命名程序集有多难? - How hard is it to tamper with a strong named assembly? 以编程方式向GAC添加一个强大的命名程序集 - Programmatically add a strong named assembly to the GAC .net-添加了一个强大的命名程序集,但是它正在寻找未签名的程序集 - .net - Added a strong named assembly, but it is looking for unsigned assembly 什么时候不应该创建大会的强名? “强名命组装”有哪些缺点? - When should we not create Assembly's strong name? What are the disadvantages of “strong named assembly”? 强命名程序集在我的Visual C#中不起作用 - Strong named assembly not working in my Visual C# c# - 你可以对强名称程序集进行“弱”程序集引用 - c# - can you make a “weak” assembly reference to a strong named assembly 来自nuget的程序集具有强名称,但会导致“需要强命名的程序集”的生成错误 - Assembly from nuget has strong name but cause build error of 'strongly-named assembly is required'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM