title: Get Build Version in automated build deployment using TFS
body: <p>I am deploying web application to azure using TFS CI automated build deployment.
  <br/>In our config maintain build version like <strong>2014.05.19.1</strong> which is $(Date).$(rev) format.
  <br/>All I want to update config each time build is deployed.For that I am passing value to 'BuildVersion' parameter in template to powershell script which actually performs publishing to azure.
  <br/><br/>
  I tried using <code>$(Date:yyyyMMdd)$(Rev:.r)</code> but it is considered string as it is.
  <br/> I want to get current build version just like <a href="http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.client.ibuilddetail.buildnumber.aspx" rel="nofollow">IBuildDetail.BuildNumber</a>
  within template.
  <br/><br/>My question is how to get the build version?</p>