简体   繁体   English

为什么Visual Studio要求一个强命名程序集?

[英]Why is Visual Studio asking for a strong named assembly?

Because I am using an unsigned third party DLL I want to make all projects in my VS2010 solution unsigned so I have unchecked "Sign the assembly" in all my projects. 因为我使用的是未签名的第三方DLL,所以我想使VS2010解决方案中的所有项目VS2010签名,因此我未选中所有项目中的“签名程序集”。

When I now try to compile the solution I get this error: 现在,当我尝试编译解决方案时,出现此错误:

Unable to emit assembly: Referenced assembly 'MyAssembly3' does not have a strong name 无法发出程序集:引用的程序集“ MyAssembly3”没有强名称

Why is this happening? 为什么会这样呢?

If you don't want the assemblies to be signed, yet they are getting signed anyway, maybe you have the same issue I do [did]? 如果您不希望对程序集进行签名,但是无论如何它们都被签名了,也许您遇到了我同样的问题[did]?

It turns out that it was referencing a "commonproperties.targets" file which was causing the sign option to be turned on no matter what I did. 事实证明,它引用的是“ commonproperties.targets”文件,无论我做什么,该文件都会导致打开sign选项。

Remove signing from an assembly 从程序集中删除签名

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM