无法在 Visual Studio 2017 中为安装项目设置 64 位目标 [英] Can't set 64 bit target for Setup Project in Visual Studio 2017

查看:36
本文介绍了无法在 Visual Studio 2017 中为安装项目设置 64 位目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在兜兜转转,试图为 64 位输出构建 MSI 安装程序.我正在使用带有

有什么想法吗?

解决方案

架构是在安装项目的属性窗口中指定的,令人困惑的是,它与您在那里显示的属性页不同.

如果您在解决方案资源管理器中选择安装项目并单击 F4,您将看到带有 AddRemoveProgramsIcon、Manufacturer 等的属性窗口.该列表下方是 TargetPlatform,您可以在其中指定 x86 或 x64.

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.

Any thoughts?

解决方案

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.

这篇关于无法在 Visual Studio 2017 中为安装项目设置 64 位目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆