Team Foundation Server - How to create a Team Project team but not pull all branches

We currently have a team project setup as shown below (for branches).

Team project
  | __Developement
         | __Development - isolated Dev function
         | __main
              | __Production

The problem that I encountered is that when we want the team to be built on a solution to the production industry, it copies the entire team project to the build server (so there are 4x copies, 1 for each branch). Since the project is quite large, and other branches should not be built, I wonder if there is a way to build a single branch?

+3
source share
2 answers

When customizing the assembly, on the Stage tab, select the correct branch in the source control.

+6
source

If you want to check the development branch, configure the assembly to check

$/Team Project/Development

If you want to check a specific folder, but not subfolders, you can "Pour" subfolders. Right-click on the assembly from Team Explorer, select "Modify Assembly Definition" and go to the "Workspace" tab.

From there, you can hide / add as many folders (branches are just folders) from anywhere you like

+2
source

Source: https://habr.com/ru/post/1715580/


All Articles