Exclude all folder / content from the Copy Files step in the TFS 2017 build definition

I am trying to get the TFS assembly definition to exclude an entire folder and all its contents from the Copy Files step as shown below: enter image description here

Here's basically what I'm trying to do:

Copy everything except the folder named "node_modules":

\\Test\Source

      

in

\\Test\Destination

      

The path to the folder where I need to exclude :

\\Test\Source\AppsJs\v3\node_modules

      

I can exclude files easily using the same pattern as above, but I cannot figure out how to exclude an entire folder.

I also saw some suggested using it -:

, but I couldn't get that to work.

I tried to look at the Copy Files documentation here and read more here and here , but I was still missing something.

Any help is appreciated!

+3


source to share


1 answer


You have to set the content on two lines like:



**\**
!AppsJs\v3\node_modules\**

      

+5


source







All Articles