title: Visual Studio 2017 c++ - error project output 'Primary Output targeting 'AMD64' is not compatible with the project's target platform 'x86'
body: <p>I'm trying to port a current working project to other computer, both are using the latest Visual Studio version and the project uses opencv library.</p>
  
  <p>I've got two projects:</p>
  
  <ul>
  <li>The project App, builds and works fine, I'm able to test it
  in debug and release modes.</li>
  <li>Setup project, to deploy the app ( which all work fine in the other
  machine).  </li>
  </ul>
  
  <p>The targeting platform is x64 and the configuration manager setup is:</p>
  
  <p><a href="https://i.stack.imgur.com/uyZE4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uyZE4.jpg" alt="enter image description here"></a></p>
  
  <p>When I'm trying to build the Setup Project I've got the error:</p>
  
  <pre><code>ERROR: File 'Apptest.exe' of project output 'Primary Output from Apptest(Active)' targeting 'AMD64' is not compatible with the project's target platform 'x86'
  </code></pre>
  
  <p>If my project is clearly setup targeting 64bits, anyone knows or have any clues why I'm getting this error? </p>
  
  <p>Thanks.</p>