gpt4 book ai didi

c# - 如何在 Mono 和 Visual Studio 2010(C#4.0) 上跳过延迟签名程序集的强名称验证?

转载 作者:太空狗 更新时间:2023-10-29 23:26:26 25 4
gpt4 key购买 nike

如何在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com