I have an assembly which is not strong-named. I have no source code for it.
I now need it to be signed. Is there a way to do this?
I have an assembly which is not strong-named. I have no source code for it.
I now need it to be signed. Is there a way to do this?
If the original assembly is marked for delayed signing, then you can use the sn.exe tool.
If the original assembly is not so marked, then you can disassemble it with ildasm.exe, then re-asssemble it with ilasm.exe and specify the /key argument.
I just recently wrote up the steps to do this on a blog post. See Sign a .NET Assembly with a Strong Name Without Recompiling
Edit: I just noticed in the comments to another answer that you already found my blog post, oops. :-)