title: TFS How to GetEnvironmentVariable value
body: <p>In my tfs build I've created an argument to which I pass in <strong>$(TF_BUILD_BUILDDIRECTORY)</strong></p>
  
  <p><a href="https://i.stack.imgur.com/VbjPn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VbjPn.png" alt="enter image description here"></a>
  Then in my xaml file I've added a variable called "test1" and added GetEnvirenmentVariable" step where I would like to store value of </p>
  
  <blockquote>
    <p>TF_BUILD_BUILDDIRECTORY</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/Ld29e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ld29e.png" alt="enter image description here"></a></p>
  
  <p>I can NOT get the value to come through. Output from my build:
  <a href="https://i.stack.imgur.com/tWzs0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWzs0.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>It prints $(TF_BUILD_BUILDDIRECTORY) instead of "C:\temp... etc"</p>
  </blockquote>
  
  <p>Please help!
  thanks</p>