【问题标题】:Can't set 64 bit target for Setup Project in Visual Studio 2017无法在 Visual Studio 2017 中为安装项目设置 64 位目标
【发布时间】:2018-04-19 00:23:05
【问题描述】:

我正在兜圈子,试图为 64 位输出构建 MSI 安装程序。我正在使用 Visual Studio 2017 和商店中的 Installer Projects 插件。

我只是找不到将目标设置为 64 位的方法。

我收到了错误:

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'

当我尝试更改目标时,我没有任何选择。

有什么想法吗?

【问题讨论】:

    标签: windows-installer visual-studio-2017


    【解决方案1】:

    架构在设置项目的属性窗口中指定,令人困惑的是,它与您在此处显示的属性页面不同。

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

    【讨论】:

    • 已经阅读了 8 个不同的教程。他们都没有提到属性页和属性窗口之间的区别。谢谢!
    • 是的,就像 OP 一样,浏览了我能找到的所有属性页面,他们把这个很好地隐藏了!谢谢!
    • 谢谢,我需要一段时间才能找到这个。它位于视图 -> 其他窗口 -> 属性窗口
    • 谢谢先生,这非常有帮助,我想知道为什么这个选项隐藏起来。
    猜你喜欢
    • 1970-01-01
    • 2017-08-07
    • 2017-08-22
    • 1970-01-01
    • 2017-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多