Here is a handy TFS 2013 build activity for getting the last build by build number filter. In this case: We get the 4th version node number: we call it the revision number We use semantic versioning and some of our branches are “version named” i.e. 1.4.10 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Activities; using System.IO; using System.Text.RegularExpressi... using Microsoft.TeamFoundation.Bu... using Microsoft.TeamFoundation.Cl... ......