title: TFS 2015 Can build variables access other build variables?
body: <p>When I define a custom variable in the new TFS 2015 team build as follows:<br>
  Name: <code>SomeOutput</code><br>
  Value: <code>$(System.DefaultWorkingDirectory)\Some</code></p>
  
  <p>...it doesn't seems to expand <code>$(System.DefaultWorkingDirectory)</code>.<br>
  Is there a way around this?</p>
  
  <p><b>EDIT:</b><br>
  At least it seems it's not expanded everywhere.</p>
  
  <p>For example, in MSBuild-Arguments, <code>/p:OUTPUT="$(SomeOutput)"</code> is expanded to <code>/p:OUTPUT="C:\TfsData\BuildAgents\_work\3\s\Some"</code> but when i add a cmd line build task with tool set to <code>cmd</code> and parameter set to <code>/k set</code>, it prints<br>
  <code>SOMEOUTPUT=$(System.DefaultWorkingDirectory)\Some</code></p>
  
  <p>EDIT 2:
  Here are my variables<br>
  <a href="https://i.stack.imgur.com/VpNcC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VpNcC.png" alt="variables"></a></p>
  
  <p>This is my workflow step<br>
  <a href="https://i.stack.imgur.com/TyoT0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TyoT0.png" alt="workflow"></a></p>
  
  <p>And this is what the build prints<br>
  <a href="https://i.stack.imgur.com/kLmsF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kLmsF.png" alt="build output"></a></p>