VSTS build Copy Files task copies full path to destination
Worthwhile to mention it helps if you use BuildConfiguration variable so it doesn't break when you use a different build config:
So it turns out I just needed to change my source directory to the folder where the binaries were.
NOTE This only works because I know exactly where the desired files are. If you find this and you're trying to copy from multiple directories, you have a couple options:
- Multiple Copy Files tasks
- Just deal with the extra directories.
Advanced => check Flatten Folders
or flattenFolders: true
in the YAML file.
I'm guessing this option didn't exist back then.