views:

6

answers:

0

Hi,

I have a problem to merge assemblies and signing the combined assembly with password automatically when building the project.

The visual studio built-in sign in function is pretty good that once you entered the password for the .pfx, you don't have to enter it anymore and the password seems to be well hidden (that's what I think at least).

Currently, I'm able to issue merging to these assemblies using the ilmerge on the post-build event but the problem is that after the merge, the assembly is not signed anymore so I had to add another post-build event to sign it and when i add these script on the post-build event, I had to provide the password too which defeat the purpose of hiding the password in the first place. Is there a way to get around this?

Example of the script I used to sign during the post-build event:

$(signtoolpath)signtool.exe sign /f "$(ProjectDir)test.pfx" /p whatever "$(TargetDir)framework.dll"

Thanks, Chen