我可以在没有源代码的程序集上签名吗? [英] Can I sign an assembly for which I do not have source code?

查看:83
本文介绍了我可以在没有源代码的程序集上签名吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经收到第三方的集会.我需要将其添加到GAC中,但是它没有强名.我有什么办法可以使用我自己的密钥对程序集进行签名,以便对其进行强命名?

I have received an assembly from a third party. I need to add it to the GAC, but it does not have a strong name. Is there any way for me to sign the assembly using my own key so that it will be strong named?

推荐答案

是.您可以使用 ILDASM 将程序集反汇编为 ILAsm 重新组合该CIL代码并使用您自己的密钥对其进行签名.

Yes. You can use ILDASM to disassemble the assembly into CIL code, and use ILAsm to reassemble that CIL code and sign it with your own key.

我已经使用各种第三方程序集进行了此操作,并且效果很好.

I've done this with various third-party assemblies, and it works just fine.

帖子 .NET -fu:对未签名的程序集进行签名(无延迟签名) 详细说明了如何执行此操作.

The post .NET-fu: Signing an Unsigned Assembly (Without Delay Signing) explains in detail how to do this.

这篇关于我可以在没有源代码的程序集上签名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆