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

2

6

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?

Nascent answered 9/2, 2009 at 14:34 Comment(0)
I
4

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

Idolah answered 9/2, 2009 at 14:37 Comment(0)
B
8

ilmerge ... /keyfile:key.snk

Blueprint answered 19/3, 2009 at 13:33 Comment(0)
I
4

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

Idolah answered 9/2, 2009 at 14:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.