The error message when running the msbuild.exe command in the pipeline:
Error MSB3482: An error occurred while signing: SignTool.exe was not found at path D:\Agent_work\16\s\My.App\signtool.exe.
But in the MSBuild Parameters I specified the following path:
-p:SignToolPath="C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\signtool.exe"
Why does this still throw the same error?
According to the signtool.exe
path you gave, your Windows SDK Signing Tools should be installed.Please make sure again that the file is available there. Does this issue still happen when running on local visual studio?
It seems that you use the private agent to run, if so, you can check the msbuildArchitecture
mentioned by Yan Sklyarenko in the comment.This may also cause this error.
If this is not the case, you can share your task definition.