title: How to get Build Id from tfs during the build in C#
body: <p>To get a log link i need the id of current build, I tried to use this in my C# code, but it didn't return Build Id:</p>
  
  <pre><code>var envVars;
  envVars = Environment.GetEnvironmentVariables();
  </code></pre>