Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 836
Michael L Perry Avatar asked May 22 '09 20:05

Michael L Perry


2 Answers

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.

like image 74
Alan Avatar answered Nov 14 '22 17:11

Alan


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).

like image 22
Dirk Vollmar Avatar answered Nov 14 '22 16:11

Dirk Vollmar