2
votes

I have created a Copy and Publish Build Artifacts build step in TFS 2015 with the following parameters:

  • Copy Root: $(build.sourcesdirectory)\bin\Installers
  • Contents: **

The according to https://www.visualstudio.com/pl-pl/docs/build/steps/utility/copy-and-publish-build-artifacts it should not copy the subdirecttories but unfortunately it does it!

How to copy and publish build artifacts whitout subfolders?

2
Did you try with .?ds19
Yes I did - the same effect. But I will retryPellared
@Pellared, I have submitted a feedback for this issue at website below, you can vote it: connect.microsoft.com/VisualStudio/feedback/details/3107122Cece Dong - MSFT

2 Answers

1
votes

Please add the suffix of the files after **, then you won't get the subdirectories. For example, in the following setting, you'll only get .txt and .dll files under $(build.sourcesdirectory)\bin\Installers, but you won't get .txt and .dll files in any sub folders under $(build.sourcesdirectory)\bin\Installers:

enter image description here

0
votes

You can use **.* instead of **.