【问题标题】:Visual Studio 2015 RC Community Edition Target Platform set to Windows 10 TP on Windows 8.1Visual Studio 2015 RC 社区版目标平台在 Windows 8.1 上设置为 Windows 10 TP
【发布时间】:2015-07-09 09:09:19
【问题描述】:

我刚刚安装了 Windows 8.1 和 Visual Studio 2015 RC 社区版。

现有 c++ 项目的编译失败,未找到包含的 <windows.h>。为了解决这个问题,我没有安装 Windows 8.1 SDK。

查看我的“Win32”配置的项目设置说:

为什么 VS2015 将 Windows 10 显示为默认目标平台,为什么我不能将值更改为 Windows 8.1?

【问题讨论】:

    标签: c++ windows visual-studio visual-studio-2015


    【解决方案1】:

    安装

    • 适用于 Windows 10 的 Microsoft Visual Studio 2015 工具(技术预览版)

    和

    • Windows 软件开发工具包 - Windows 10.0.10069

    似乎在 Visual Studio 2015 RC 安装过程中默认完成。

    Windows 8.1 and Windows Phone 8.0/8.1 Tools 的可选选择似乎无法在 Windows X 版本旁边正确安装相应的平台工具集,以便能够在相应的项目设置页面上进行更改。

    卸载上面提到的适用于 Windows 10 的工具包和 SDK-Kits

    Target Platform    Windows
    

    在项目设置中可用,我现在可以选择版本 8.1。

    现在<windows.h>又被找到了。

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题。 我将平台工具集更改为 v140_xp,并关闭了 VS2015。打开VS2015后要求安装Windows XP C++库,225MB。经过这些步骤,我的项目编译成功。希望这对您有所帮助。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-04
        • 2020-07-17
        相关资源
        最近更新 更多