How do you sign an assembly created using an ILMerge operation?

I managed to use ILMerge to merge all the assemblies that I have in my project into one assembly, but the problem is that there is no way to sign the merged assembly.

Is there any command line option or command that I can run that will allow me to add a strong name to the federated assembly generated by ILMerge?

+6
ilmerge signing strongname
source share
2 answers

You need to use the following command to sign:

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

If you want to know more, visit: http://msdn.microsoft.com/en-us/library/xc31ft41.aspx

+4
source share

ilmerge ... / keyfile: key.snk

+8
source share

All Articles