title: MSBuild error CS2001 source file could not be found
body: <p>I'm trying to do a command line build on one of my projects using MSbuild. The solution and project builds fine in VS2012, but when I execute a batch file containing </p>
  
  <pre><code>msbuild.exe project.csproj
  </code></pre>
  
  <p>It fails. There are so many errors I cant even scroll up past them. They are all the same error, for different files, all from other projects in the solution:</p>
  
  <pre><code>CSC : error CS2001: Source file 'folder\filename.cs' cound not be found [c:\folder\project.csproj]
  </code></pre>
  
  <p>I have found other questions talking about file name lengths. I tried removing every layer in the path that I could, to no avail. I find it odd that the source file path is not relative, even though the files it can't find are, indeed, from other projects. i'm at a bit of a loss here. Why does my build fail?</p>