I have an application which let me select some options, change name, and other preferences and then click the Build button. A file named source.cs will be compiled through CSharpCodeProvider and new program will appear.
How to digitally sign the compiled program (Self-signing) at compile time. So the built program will be digitally signed ?
Is it sufficient to digitally sign the Builder to generate digitally signed programs from the Builder ?
Assembly signing is done by Al.exe, ie the assembly linker. There is of course API’s doing the signing part, but I would prefer deploy the solution with ILmerge.exe and shell it as a command line to sign te assembly after is built. the command line to use is basically this one:
so you don’t exactly merge since there is a single assembly, but as a side effect the assembly will be signed.