Reputation: 33
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
Upvotes: 1
Views: 10257
Reputation: 51133
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
Upvotes: 2