【发布时间】:2020-03-10 14:02:46
【问题描述】:
在管道中运行 msbuild.exe 命令时的错误信息:
错误 MSB3482:签名时出错:SignTool.exe 没有 在路径找到 D:\Agent_work\16\s\My.App\signtool.exe。
但在 MSBuild 参数中我指定了以下路径:
-p:SignToolPath="C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\signtool.exe"
为什么还是会抛出同样的错误?
【问题讨论】:
-
this thread 中的主题发起者有类似的问题,这是如何解决的:
The issue was that I have the msbuildArchitecture set to x64 and when it is set to that it can't find the signtool.exe. Switching it to x86 everything built and the publish worked successfully.您也有这种情况吗? -
是的,将其切换到 x86。这就是问题所在 - 谢谢。但现在它提示我输入构建机器上 *.pfx 文件的密码。这应该会自动工作。
-
@Matthias Herrmann 对于 pfx 问题,您可以参考此 case。
标签: azure-devops msbuild signtool