title: VSTS - The system cannot find the path specified
body: <p>I am trying to compile a solution on Visual Studio Team Services (VSTS), using the hosted agent. One of the projects in the solution has a Pre-build event:</p>
  
  <pre><code>cmd /c $(SolutionDir)Tools\GenerateResourceLibrary\bin\$(ConfigurationName)\GenerateResourceLibrary.exe $(ProjectDir)
  </code></pre>
  
  <p>This command is used to generate a resource file (.resx). </p>
  
  <p>Everything works as expected locally, and it was working fine on VSTS until a few weeks ago. At the moment I can't compile the solution, error message is the following:</p>
  
  <blockquote>
    <p>The system cannot find the path specified</p>
  </blockquote>
  
  <p>I've checked the logs on the build server, both the tool path (<code>GenerateResourceLibrary.exe</code>) and the <code>$(ProjectDir)</code> seem to be correct. Also, I've tried changing the command slightly (putting quotes, etc) but nothing seems to work.</p>
  
  <p>I was just wondering what might have changed on the hosted agent, given that this was working fine until a few weeks ago. Maybe it's a permissions issue?</p>