Can I sign an assembly for which I do not have source code?

泄露秘密 提交于 2019-12-03 15:50:19

问题


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?


回答1:


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.

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




回答2:


Yes, this is possible. However, the solution is not straightforward. You will find instructions on signing third-party assemblies in .NET-fu: Signing an Unsigned Assembly (Without Delay Signing).



来源:https://stackoverflow.com/questions/899856/can-i-sign-an-assembly-for-which-i-do-not-have-source-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!