Search code examples
visual-studiovisual-studio-2013clickoncesigntool

Clickonce publishing from Visual Studio 2013 command-line with MSBuild cannot find SignTool.exe


I have a build-script which I've been using for ages now, and worked fine in all previous VS versions up to 2012. After migrating to 2013 the build script fails to sign the ClickOnce manifest at the end of the build process, and complains about not finding SignTool.exe.

  • I'm running a Windows 8.1 on a 64 bit machine, installed the full Visual Studio 2013. I tried to reinstall the Windows SDK for 8.1, but still no success.
  • The publish process successfully signs the manifest when I run the publish inside Visual Studio.
  • I've searched for signtool.exe and the only hit was in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\bin

I'm not actuallz too good at MSBuild stuff, so I have no clue what could I try or how could I show MSBuild that it should find that tool there.

If anyone had such experience please give me some hints.


Solution

  • The problem was that I've used the X64 version of the Visual Studio Commnad Line, instead of the X86. It's possible that it has to match with my projects target platform, because it's x86. Building and signing from the x86 commandline is working without any errors.

    Hope this can help someone else too.