程序集应该拥有一个有效的强名称
来源:互联网 发布:加诺格淘宝网店真的吗 编辑:程序博客网 时间:2024/04/29 12:11
Assemblies should have valid strong names
TypeName: AssembliesShouldHaveValidStrongNames CheckId: CA2210 Category: Microsoft.Design Message Level: CriticalError Certainty: 95% Breaking Change: NonBreaking Rule Description This rule retrieves and verifies the strong name of an assembly. A violation occurs if any of the following are true: The strong name protects clients from unknowingly loading an assembly that has been tampered with. Assemblies without strong names should not be deployed outside of very limited scenarios. If you share or distribute assemblies that are not correctly signed, the assembly can be tampered with, the common language runtime might not load the assembly, or the user might have to disable verification on his or her computer. An assembly without a strong name suffers from the following drawbacks: Note that to load and analyze a delay-signed assembly, you must disable verification for the assembly. How to Fix Violations To fix a violation of this rule, use the Strong Name tool (sn.exe) to create a key file and sign the assembly with a strong name using one of the following procedures: When to Exclude Messages Only exclude a message from this rule if the assembly is used in an environment where tampering with the contents is not a concern. 1. 程序集没有使用强名称进行签名 2. 强名称不能被校验 3. 该程序集的强名称依赖于当前计算机的设置才有效。 这个规则读取并校验一个程序集的强名称,下面任何一条都会引起这条规则校验失败: 1. 这个程序集没有进行强名称签名 2. 进行签名后,这个程序集被修改过。 3. 程序集被设置成延迟签名 4. 程序集签名失败 5. 程序集需要一定的注册表设置才能通过强名称校验 例如:通过强名称工具(Sn.exe)设置跳过对这个程序集的强名称确认 共2页: 上一页 1 [2] 下一页 <script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Cause: An assembly is not signed with a strong name, the strong name could not be verified, or the strong name would not be valid without the current registry settings of the computer. 引起的原因:
描述: