Share via


UpdateBuildNumberDropLocation Task

The UpdateBuildNumberDropLocation updates the build number and drop location in the Team Foundation version control database. This task also creates the drop directory and grants full permissions to all of the accounts in the Service Accounts group.

Parameters

Property

Description

TeamFoundationServerUrl

Specifies the Team Foundation Server URL. For example, http://MyServer:8080.

BuildUri

Specifies the Uniform Resource Identifier (URI) for the build definition.

BuildNumber

Specifies the new build number.

DropLocation

Specifies the new drop location.

Remarks

The Microsoft.TeamFoundation.Build.targets file contains an instance of the UpdateBuildNumberDropLocation task that Team Foundation Build uses as a default implementation as a part of the InitializeEndToEndIteration target.

Microsoft.TeamFoundation.Build.targets file is stored in the <root>:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild folder on the Team Foundation Build computer.

Example

The following example shows the default instance of UpdateBuildNumberDropLocation task defined in the Microsoft.TeamFoundation.Build.targets file.

<UpdateBuildNumberDropLocation
    TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
    BuildUri="$(BuildURI)"
    BuildNumber="$(BuildNumber)"
    DropLocation="$(DropLocation)$(Slash)$(BuildNumber)" />

See Also

Tasks

How to: Customize Build Numbers

Concepts

Team Foundation Build Tasks

Other Resources

Customizing Team Foundation Build

Team Foundation Build Targets, Tasks, and Properties