如何在 Mono 和 Visual studio 2010(C#4.0) 上跳过对延迟签名程序集的强名称验证?
感谢和问候, P.萨拉瓦南
最佳答案
您必须将 -Vr
命令行选项传递给 strong name tool (sn.exe
):
sn -Vr yourAssembly.dll
但要小心:出于安全考虑,这应该只在开发机器上完成。引用文档:
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.
关于c# - 如何在 Mono 和 Visual Studio 2010(C#4.0) 上跳过延迟签名程序集的强名称验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5350177/