如何跳过Mono和Visual Studio 2010(C#4.0)上延迟签名的组件的强名称验证? [英] how to skip the strong name verification for delay signed assembilies on Mono and Visual studio 2010(C#4.0)?

查看:116
本文介绍了如何跳过Mono和Visual Studio 2010(C#4.0)上延迟签名的组件的强名称验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何跳过Mono和Visual Studio 2010(C#4.0)上延迟签名的组件的强名验证?

how to skip the strong name verification for delay signed assembilies on Mono and Visual studio 2010(C#4.0)?

感谢&问候, 萨拉瓦南(P.SARAVANAN)

Thanks & Regards, P.SARAVANAN

推荐答案

您必须将-Vr命令行选项传递给

You have to pass the -Vr command-line option to the strong name tool (sn.exe):

sn -Vr yourAssembly.dll

但是请小心:出于安全考虑,仅应在开发计算机上执行此操作.查阅文档:

Be careful though: this should only be done on development machines because of security considerations. Quoth the documentation:

仅在开发期间使用此选项.将装配体添加到 跳过验证列表会创建一个安全漏洞.恶意的 程序集可以使用完全指定的程序集名称(程序集名称, 版本,区域性和公钥令牌)添加到 跳过验证列表以伪造其身份.这将允许 恶意程序集也可以跳过验证.

Use this option only during development. Adding an assembly to the skip verification list creates a security vulnerability. A malicious assembly could use the fully specified assembly name (assembly name, version, culture, and public key token) of the assembly added to the skip verification list to fake its identity. This would allow the malicious assembly to also skip verification.

这篇关于如何跳过Mono和Visual Studio 2010(C#4.0)上延迟签名的组件的强名称验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆