How to: Start Signtool.exe as a Post-Build Event (Devices)

Run signtool.exe as a post-build event when other post-build events change the original binaries. Changes to signed binaries invalidate the original signing.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.

To start signtool.exe as a post-build event in Visual Basic and Visual C# device projects

  1. In Solution Explorer, right-click the project, and then click Properties.

  2. On the Build Events page (Visual C#) or the Compile page (Visual Basic), click Edit Post-build.

  3. In the Post-build Event Command Line dialog box, type the signtool command line with the options that you select.

    For more information about how to run signtool at a command prompt, see SignTool.

To start signtool.exe as a post-build event in Visual C++ device projects

  1. In Solution Explorer, right-click the project, and then click Properties.

  2. Under Configuration Properties, expand the Build Events node.

  3. Click Post-Build Event.

  4. Select the Command Line property, and then click the ellipsis button () to open the Command Line dialog box.

  5. Type the signtool command line with the options that you select.

    For more information about how to run signtool at a command prompt, see SignTool.

See Also

Other Resources

Security in Device Projects