Can't set 64 bit target for Setup Project in V

2019-06-16 07:31发布

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?

1条回答
再贱就再见
2楼-- · 2019-06-16 08:19

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.

查看更多
登录 后发表回答