The Muffin Man
The Muffin Man

Reputation: 20004

How to get the build number in the TfvcTemplate.12.xaml

In the DefaultTemplate.11.1.xaml workflow template to get the build number you just did:

BuildDetail.BuildNumber but this isn't available in the `12 template. How can I achieve the same result?

Note: I see there's a GetBuildDetail member that comes up in intellisense, but like everything else in these templates if there is an ounce of documentation, I can't find it.

http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.getbuilddetail.aspx is of no help.

Upvotes: 2

Views: 655

Answers (1)

Dylan Smith
Dylan Smith

Reputation: 22235

They are available in Environment Variables now. There is a Workflow Activity GetEnvironmentVariable you can use. For Name property specify: Microsoft.TeamFoundation.Build.Activities.Extensions.WellKnownEnvironmentVariables.BuildNumber

Upvotes: 3

Related Questions