TFS 2010: Use a label name in assembly number format

I'm trying to customize the build with TFS 2010. I want the build number format to be something like $ (BuildDefinitionName) _ $ (version) , where $ (version) is the version (label or set of changes) specified in the Get field version "in the Create Queue dialog box. If there is no specific version, I would like the version to be the latest .

I googled for this, but I'm new to building msbuild and TFS, so I'm not sure what I should look for to start.

Thank.

+3
source share
2 answers

Microsoft.TeamFoundation.Build.Workflow.Activities.UpdateBuildNumber (, DefaultTemplate.xaml) - , . , ( ) .

, , , BuildNumberFormat .

  • xaml, , Update Build Number .
  • β†’ . Update Build Number.
  • , String.Format("$(BuildDefinitionName)_$(Date:yyyyMMdd)_{0}$(Rev:.r)", BuildDetail.SourceGetVersion) BuildNumberFormat. SourceGetVersion , . " " , (, C16044).
+5

All Articles