TFS automated testing-Adding a build definition will automatically copy all files under the project

Afon.zhang 396 Reputation points

I am using TFS2015 to build automated tests recently, add a build definition in TFS resource management, and then add a build step

But I found that when I set the trigger to be continuous generation, the "get source" operation will be executed before the step I add to generate is executed.
I got a lot of items that I don’t want
For example: You need to select the repository (
There are many items under the repository) I only want to copy a certain item under the repository. Can I set it from where?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
34,983 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP

    Devops / TFS is not currently supported here on Q&A. The product group for Azure DevOps / TFS actively monitors questions over at

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Afon.zhang 396 Reputation points

    Supplement: Solved it by yourself.
    Under the generation definition, under the repository tab, there is a mapping tab where you can set the file path to be copied. If you don’t specify it, then all files are copied. You only need to specify the project path you need.

    0 comments No comments