Label Task
The Label task attaches a label to the specified version of the files in the workspace.
Parameters
Property | Description |
---|---|
Workspace |
Specifies the workspace name. |
Name |
Specifies the label name. |
Version |
Specifies the version of the file or folder. |
Files |
Specifies the items to be labeled. |
Recursive |
Specifies whether or not the files are labeled recursively. |
Remarks
The Label task is defined in the Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll. The Microsoft.TeamFoundation.Build.targets file contains an instance of the Label task that Team Foundation Build uses as a default implementation for the CoreLabel target. You can also customize the build process by defining a different instance of the Label task for a build type in the TfsBuild.proj file. For more information, see How to: Modify the Scope of Changesets and Work Items Associated With a Build Type.
Microsoft.TeamFoundation.Build.targets file is stored in the <root>:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild folder on the Team Foundation Build computer.
See Also
Tasks
How to: Customize Build Numbers
Reference
Label Command (Team Foundation Source Control)
Concepts
Other Resources
Customizing Team Foundation Build
Team Foundation Build Targets, Tasks, and Properties