I have a c# .net project in Visual Studio 2013. I have successfully signed the manifest told Visual studio to also sign the assembly.
However the application exe file is not being signed. After googling I added the following to the post build event
"C:\Program Files\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /f "$(ProjectDir)certificate.pfx" /p mypassword "$(ProjectDir)obj\Debug\myapp.exe"
and also tried
"C:\Program Files\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /f "$(ProjectDir)certificate.pfx" /p mypassword "$(ProjectDir)bin\Debug\myapp.exe"
That seems to sign the exe, however now my application won't launch and gives the error:
File, ECG Cloud Holter Assistant.exe, has a different computed hash than specified in manifest.
So I think I need it to sign the exe before it generates the manifest but how do I do that?
If I don't include the post build command, the app runs ok but with an unknown publisher warning.