1

Using the copy task to copy some msi files to the drop location. The msis are in corresponding bin/debug/release folders. When I use the copy files task it copies the entire folder structure (bin/debug/...msi) to the target location. I just want it to copy the files to the target location. Is that possible?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
O.O
  • 11,077
  • 18
  • 94
  • 182

1 Answers1

2

This can be achieved. However, you need to specify the copy root if you want to copy files only without folder structure. You can use $(Build.StagingDirectory) as a target for this. Afterwards use the Publish task with $(Build.StagingDirectory) as copy root and publish everything from this root to the drop.

Detail step and screenshot please take a look at the answer from Eddie in this question: Copy one file in target directory on deploy from visual studio team services

Community
  • 1
  • 1
PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62