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?
Asked
Active
Viewed 3,213 times
1
-
Are you wanting to do this as one step? – James Davis - MSFT Jul 23 '16 at 03:50
1 Answers
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