title: TFS 2013 Branch Name in MSBuild Script
body: <p>I've seen several mentions of variables holding the TFS branch name, pulled from the last directory in the Source Settings path of the build definition, but I've not gotten any to work in TFS 2013.  Is there a variable that will populate in my MSBuild script(triggered from the build definition) in TFS 2013?</p>
  
  <p>This is what I've tried with no luck, all are blank:</p>
  
  <pre><code>&lt;Message Text="SourceBranchName: $(SourceBranchName)" /&gt;    
  &lt;Message Text="Build.SourceBranch: %(Build.SourceBranch)" /&gt;
  &lt;Message Text="BranchName: $(BranchName)" /&gt;
  &lt;Message Text="Build.SourceBranchName: %(Build.SourceBranchName)" /&gt;
  &lt;Message Text="BUILD_SOURCEBRANCHNAME: $(BUILD_SOURCEBRANCHNAME)" /&gt;
  </code></pre>