Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't set 64 bit target for Setup Project in Visual Studio 2017

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?

like image 558
Philip Couling Avatar asked Nov 06 '17 18:11

Philip Couling


1 Answers

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.

like image 127
PhilDW Avatar answered Oct 17 '22 13:10

PhilDW