title: Visual Studio build successful, MSBuild fails
body: <p>I am trying to clean and rebuild a solution file with multiple projects from the command line using MSBUILD. For some reason my build fails (about 10% of the built projects fail) and I get multiple errors which all look like:</p>
  
  <p>error CS0234: The type or namespace name 'foo' does not exist in the namespace 'bar' (are you missing an assembly reference?)</p>
  
  <p>Now if I clean and rebuild the same solution file from Visual Studio 2010 with the exact same configurations it will build successfully with no errors.</p>
  
  <p>Is there a difference in the setup or configuration of MSBuild from Visual Studio that needs to be changed that I am not aware of? </p>