PostBuild Event fails in Visual Studio after SignTool.exe error
问题 We have a project in Visual Studio 2010 that runs a batch file in the post-build event. That batch calls to signtool.exe from Microsoft SDK to sign and timestamp the binary. Timestamp servers (we use http://timestamp.verisign.com/scripts/timstamp.dll), however, tend to be unreliable for some reason, failing sometimes. This caused build to fail. We implemented a more advanced batch script then (based on this code), splitting signing and timestamping, and allowing to retry the timestamp