I've been using Azure Pipelines and Releases to build and publish artifacts.

In SolutionX, there are projects ProjectY and ProjectYTests.

I build everything in the solution (to run the tests) and then I want to publish just ProjectY's built contents, in an artifact called drop.

I deploy it to a folder called FolderZ.

When I download the published artifact, the filepath is like: FolderZ/drop/ProjectY/bin/Release/*. I'd much rather it was just FolderZ/*.

How can I get rid of (at least) the bin/Release pipeline bit?

1 Answer 1


In the copy files task, there is an optional parameter flattenFiles (bool). This does the job.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.