对引用非托管程序集的托管程序集进行签名
我正在尝试使用 Visual Studio (2010) 签署 .net 程序集。在项目的属性页面上,我选择了“签名”选项卡,然后选中“对程序集进行签名”并提供了强名称密钥文件。
问题是这个项目引用了另一个非托管项目。当我尝试构建 .net 程序集时,我收到消息:“程序集生成失败 - 引用的程序集‘otherAssemblyName’没有强名称。
由于其他程序集/项目是非托管的,我不相信它是可以对其进行签名,所以我不知道下一步该怎么做,
它将被另一个签名的程序集使用。
因为
I'm trying to sign a .net assembly with Visual Studio (2010). On the properties page for the project, I selected the Signing tab, and checked "sign the assembly" and provided a strong name key file.
The problem is that this project references another -- unmanaged project. When I try to build the .net assembly, I get the message: "Assembly generation failed -- Referenced assembly 'otherAssemblyName' does not have a strong name.
Since the other assembly/project is unmanaged, I don't believe that it is possible to sign it, and so I don't know what to do next.
I need to sign my .net assembly because it will be used by another signed assembly.
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您确定另一个程序集是“不受管理的”吗?无法引用非托管程序集。
C++ 可以生成非托管或托管 DLL。如果您 p/Invoking DLL,那么它是非托管的;否则,它会被管理并可以被签名。
Are you sure the other assembly is "unmanaged?" It's not possible to reference an unmanaged assembly.
C++ can generate unmanaged or managed DLLs. If you're p/Invoking the DLL, then it's unmanaged; otherwise, it's managed and can be signed.