title: Building Visual Studio project with different platforms via MSBuild
body: <p>I have 3 projects with configuration:</p>
  
  <ul>
  <li>Project A: Debug|AnyCPU, Release|AnyCPU</li>
  <li>Project B: Debug|AnyCPU, Release|AnyCPU</li>
  <li>Project C: Debug|x86, Debug|x64, Release|x86, Release|x64</li>
  </ul>
  
  <p>Project C have B in dependencies and B have A in dependencies. (A &lt;- B &lt;- C)</p>
  
  <p>I use *.bat file to build its from command line:</p>
  
  <pre><code>msbuild A.csproj /target:Build /property:Configuration=Debug;Platform=AnyCPU /verbosity:minimal
  msbuild A.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:minimal&lt;br/&gt;
  msbuild B.csproj /target:Build /property:Configuration=Debug;Platform=AnyCPU /verbosity:minimal
  msbuild B.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:minimal
  msbuild C.csproj /target:Build /property:Configuration=Debug;Platform=x86 /verbosity:minimal
  msbuild C.csproj /target:Build /property:Configuration=Release;Platform=x86 /verbosity:minimal
  msbuild C.csproj /target:Build /property:Configuration=Debug;Platform=x64 /verbosity:minimal
  msbuild C.csproj /target:Build /property:Configuration=Release;Platform=x64 /verbosity:minimal
  </code></pre>
  
  <p>And recieve error:</p>
  
  <blockquote>
    <p>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(609,5): error : The OutputPath property is not set for project 'A.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x86'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [A.csproj]
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(609,5): error : The OutputPath property is not set for project 'B.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x86'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [B.csproj]</p>
  </blockquote>