对引用非托管程序集的托管程序集进行签名

发布于 2024-09-06 17:22:57 字数 278 浏览 2 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七度光 2024-09-13 17:22:57

您确定另一个程序集是“不受管理的”吗?无法引用非托管程序集。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文