I'm trying to build a project which requires to set the working directory to a path.
On my local machine I could go with Visual Studio 2019 and go to Project - Properties - Debugging - Command Arguments and set it to whatever I want. The problem is that I don't know how to do with Visual Studio build task .
If I do not set this settings, it produces an executable that doesn't launch.
here is my build pipeline: https://dev.azure.com/nathanvalletmarseille/armorpaint/_build?definitionId=5&_a=summary
It's not able to directly set this with build-in visual studio build task.
However, you could do this through a script before you run the build task:
- script: # script path or inline
workingDirectory: #
displayName: #
failOnStderr: #
env: # mapping of environment variables to add
More details take a look at this similar question: Change current working directory in Azure Pipelines
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.