title: Project reference to another project with different target platform in Visual Studio
body: <p>I am developing Azure Function in visual studio, it running well locally. When I try to publish to AZ, it gives me failed error: Please change project B target platform to x64 via build configuration manager. </p>
  
  <p>But I already did so, otherwise it can not running, even locally. However, I did not change the target platform to x64 in the dialog after I right click the project B's properties. </p>
  
  <p>Problem is after I make the change there, it did not working even locally. Project A with target platform AnyCPU which reference to peoject B gives me another error: Project A: Could not load file or assembly, Project B.</p>
  
  <p>Any idea on how this whole thing should work both locally and on Azure. Am I in the wrong place at beginning?</p>
  
  <p>They all in same solution, the executing project call Porject A, and project A call project B</p>
  
  <p>Thanks!</p>