title: Is there a way that VSO vNext builds can clean up long directory paths (>260 characters)
body: <p>I've setup a .Net <a href="http://geekswithblogs.net/jakob/archive/2015/01/15/tfs-build-vnext-ndash-a-preview.aspx" rel="nofollow noreferrer">TFS Build vNext</a> build to run the following:</p>
  <ul>
  <li>npm install</li>
  <li>gulp</li>
  <li>visual studio solution build</li>
  </ul>
  <p>The build is confgured to clean automatically before checking for sources like so:</p>
  <p><img src="https://i.stack.imgur.com/GrdMC.png" alt="Clean Sources Configuration" /></p>
  <p>I have two problems with this build but this question is about problem #2.</p>
  <ol>
  <li><p>The npm install step fails to install phantomjs because the command <em>node install.js</em> can't find <em>node</em>, even though node is in the System path.</p>
  </li>
  <li><p>Running builds configured to Clean fails because of the path too long error below.</p>
  </li>
  </ol>
  <h2>[error]The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.</h2>
  <p>I would like for the <em>Clean</em> setting to just work and clean up these longs paths, but I don't know how to make it work properly.</p>
  <p>When I tried to re-create this same build in TeamCity the <em>Clean</em> option works just fine. Also, I know that if I had access to the script that is running the clean that it could just use a *rmdir /S /Q  to remove these paths. Hopefully the VSO build can just run this or something that works.</p>