18

I'm going round in circles trying to build an MSI installer for 64 bit output. I'm using visual studio 2017 with the Installer Projects add-on from the store.

I just cant find a way to set the target to 64 bit.

I'm getting the error:

Building file 'C:\Users\philip\git\foo\Installer\Debug\Installer.msi'...
Building file 'C:\Users\philip\git\foo\Installer\Debug\Installer.msi'...
ERROR: File 'foo.Core.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
ERROR: File 'foo.Core.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'foo.Core.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'foo.Core.dll' targeting 'x64' is not compatible with the project's target platform 'x86'

When I try to change the target, I'm not given any options.

enter image description here enter image description here

Any thoughts?

Philip Couling
  • 12,024
  • 4
  • 46
  • 75

1 Answers1

45

The architecture is specified in the setup project's properties window which, confusingly enough, is not the same as the property pages, which is what you are showing there.

If you select the setup project in solution explorer and click F4 you sould see the properties window with AddRemoveProgramsIcon, Manufacturer and so on. Down that list is TargetPlatform where you specify x86 or x64.

PhilDW
  • 19,781
  • 1
  • 17
  • 26
  • 4
    Having read 8 different tutorials. None of them mentioned the difference between property pages and properties window. Thanks! – Philip Couling Nov 06 '17 at 19:37
  • 1
    Yea, like the OP, went through all properties page I could find, they had this one squirreled away well! Thanks! – Don B Oct 31 '18 at 17:20
  • Thanks, I would take me a while to find this. It is on View -> Other Windows -> Properties Window – Julek Jul 12 '20 at 17:52
  • Thank you sir, this was super helpful, I wonder why is the option hidden like this. – Petr Nohejl Sep 30 '21 at 14:29