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

标签 c# visual-studio-2010 mono monodevelop

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

相关文章:

c# - 构建错误 MC1000 'Object reference doen' t 设置为实例

c# - 从 GUI 启动控制台应用程序并与之通信

c# - 如何检查特定文件并将其删除

.net - 未找到或无法加载程序集 mscorlib.dll

c# - 计算相对路径变化

c# - LINQ 搜索中的 mscorlib.dll 中出现类型为 'System.OutOfMemoryException' 的未处理异常

C++/WIN32 一个看起来很专业的应用程序——真的可能吗?

c++ - 奇怪的英特尔 C++ 编译器错误

c# - 没有对多个通用约束的隐式转换

c# - 获取访问点列表并使用 Linux Mono/C# 进行连接