title: MSBuild building project and referenced project with same configuration
body: <p>I'm using MSBuild to build a project with configuration set to a custom configuration. I have a referenced project (a library) which does not have any cutom configuration set to it. The issue is, it seems like MSBuild is building the project and the project references with the same configuration.</p>
  
  <p>I'm using this command:</p>
  
  <pre><code>msbuild.exe &lt;path&gt;\&lt;project&gt;.csproj /p:DeployOnBuild=true /p:OutDir=&lt;dirpath&gt; /p:Configuration=&lt;CustomConfig&gt;
  </code></pre>
  
  <p>Im having the follow error:</p>
  
  <blockquote>
    <p>C:\Program Files
     (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(724,5):
     error : The OutputPath property is not set for project
     'referencedProject.csproj'.  Please check to make sure that you have specified a valid combination  of Configuration and Platform for this
     project.  Configuration='CustomConfig'  Platform='AnyCPU'.  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. [path\ReferencedProjectcsproj]</p>
  </blockquote>
  
  <p>I cannot find anything related online, if anyone can point me to anything or help me out with this, that would be great.</p>