Use of TFS tf Label Command for the Project Source Files Labeling

A Label can be attached to a set of files/folder in the TFS which in turn can simplify retrieval of the source code for a build process or further development. Labeling is very handy during any of the following commands

  • Branch Command
  • Difference Command
  • Dir Command
  • Get Command
  • History Command
  • Merge Command
  • View Command

There are no specific rules on how to call a label, but more often you will indicate a release number or milestone. For instance, “Beta1” would be a good choice for the code being checked into the Source Safe for the “Beta 1” Release.

It is important to know that Label is non-recursive and if applied to a folder, it does not necessary means that everything under this folder is labeled the same way.
tf label MyBuild MyProject1 /recursive

Featured pages

SharePoint Integration

Windows SharePoint Services is an integral part of Team Foundation Server. As a result, there is v…

Creating Team Project

Team Foundation Server allows creation of the portal project via TFS Portal Creation Wizard. This …

SQL Server Agent Jobs

Team Foundation Server installs several SQL Server Agent Jobs that allow it to perform certain tas…

tf Command

tf Command line utility provide many useful operations that we can perform with Team Foundation Se…

Shelving and Unshelving

Shelving is very powerful feature of the Source Control in VSTS that allows storing pending change…

MS Project Fields Mapping

TFS works with MS Project via mapping file with specific fields mapped from one application to ano…

Using MS Project with Team Foundation Server

MS Projects allows accessing Team Foundation Server and working with the TFS Work Items. This is a…

Managing Documents in TFS

Team Foundation Server provides us with the capability to manage various documents, also called ar…