title: VSTS Custom Build Number
body: <p>Is it possible to set the build number of a VSTS build based off of the result of a PowerShell/Shell script?</p>
  
  <p>I am trying to set it like so currently:</p>
  
  <p><code>
  Write-Host "##vso[task.setvariable variable=build.buildnumber;]$VersionNumber"
  </code></p>
  
  <p>However this does not set the build number unfortunately. Having to do this as VSTS doesn't have a way to natively retrieve the latest (or any) git tags from GH!!!</p>