I have a DLL that I have created using ILMerge (more specifically using the MSBuild.ILMerge Task tool) and I need the merged DLL to be strongly named.
The "original" DLL is signed using Visual Studio (done by creating a new key with password) however the merged DLL is not.
Ideally I'd like to sign the DLL as part of the build process, but I'm happy to do it afterwards (manually if need be).
Any assistance would be appreciated.
If you install ILMerge stand-alone, you can pass the argument /keyfile, like:
ilmerge.exe /out:Merged.dll /keyfile:key.snk Primary.dll Secondary.dll
You can also sign it without merging, like:
ilmerge.exe /out:Merged.dll /keyfile:key.snk Primary.dll