Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you sign an assembly that was generated by an ILMerge operation?

I managed to use ILMerge to merge all the assemblies I have in my project into a single assembly, but the problem is there doesn't seem to be a way to sign the merged assembly.

Is there some sort of command line option or command that I can run that would let me add a strong name to the merged assembly generated by ILMerge?

like image 989
plaureano Avatar asked Feb 09 '09 14:02

plaureano


2 Answers

ilmerge ... /keyfile:key.snk

like image 156
liggett78 Avatar answered Sep 30 '22 05:09

liggett78


You need to use the following commandline to sign:

al /out:MyAssembly.dll MyModule.netmodule /keyfile:sgKey.snk

If you would like to learn more, please visit: http://msdn.microsoft.com/en-us/library/xc31ft41.aspx

like image 44
Nick Berardi Avatar answered Sep 30 '22 04:09

Nick Berardi