2

When you are using a code-signing certificate to sign your assemblies, how do you ensure that the code has a timestamp?

See here and here for more details about why you need a timestamp on a signed assembly.

Community
  • 1
  • 1
Sean Kearon
  • 10,987
  • 13
  • 77
  • 93

1 Answers1

2

You can use the below build event to ensure that your assemblies are both signed and timestamped:

if $(ConfigurationName)==Release "$(FrameworkSDKDir)bin\signtool.exe" sign /a /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"

See the SignTool article at MSDN and have a look at the /t (timestamp) switch.

Teoman Soygul
  • 25,584
  • 6
  • 69
  • 80