0

我有一个构建脚本,我已经使用了很长时间,并且在 2012 年之前的所有以前的 VS 版本中都可以正常工作。迁移到 2013 年之后,构建脚本无法在构建过程结束时签署 ClickOnce 清单,并且抱怨找不到 SignTool.exe。

  • 我在 64 位机器上运行 Windows 8.1,安装了完整的 Visual Studio 2013。我尝试重新安装 8.1 的 Windows SDK,但仍然没有成功。
  • 当我在 Visual Studio 中运行发布时,发布过程成功签署了清单。
  • 我已经搜索过signtool.exe,唯一的命中是C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\bin

我实际上不太擅长 MSBuild 的东西,所以我不知道我可以尝试什么,或者我如何向 MSBuild 展示它应该在那里找到该工具。

如果有人有这样的经历,请给我一些提示。

4

2 回答 2

0

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.

于 2014-07-22T17:56:31.850 回答
0

如果错误是“can't locate xxx”之类的错误,可能是路径搞砸了。在 VS.NET 2013 附带的新版MSBuild 中,看起来某些路径已更改。也许您现在必须更新构建文件中的相对路径?

将需要您的完整构建文件来提供更多洞察力。

于 2014-07-16T21:36:03.507 回答