从 Visual Studio 2015 企业更新 1 定位 Windows xp [英] Targetting Windows xp from visual studio 2015 enterprise update 1

查看:27
本文介绍了从 Visual Studio 2015 企业更新 1 定位 Windows xp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我们是否可以使用可以在 Windows xp 上运行的 Visual Studio 2015 构建项目/二进制文件?如果它支持,那么我们如何构建?

I would like to know whether we can build the projects/binaries using visual studio 2015 which can run on Windows xp ? If its supported then how we can build ?

推荐答案

配置 C++11个适用于Windows XP的程序

Visual Studio 中包含的 Windows XP 平台工具集是 Visual Studio 2010 中包含的 Windows 7 SDK 的一个版本,但它使用当前的 C++ 编译器.它还将项目属性配置为适当的默认值——例如,用于下层目标的兼容链接器的规范.只有使用 Windows XP 平台工具集创建的 Windows 桌面应用程序才能在 Windows XP 和 Windows Server 2003 上运行,但这些应用程序也可以在更新的操作系统上运行,例如 Windows Vista、Windows 7、Windows Server 2008、Windows 8,或 Windows Server 2012.

The Windows XP platform toolset that's included in Visual Studio is a version of the Windows 7 SDK that was included in Visual Studio 2010, but it uses the current C++ compiler. It also configures project properties to appropriate default values—for example, the specification of a compatible linker for down-level targeting. Only Windows desktop apps that are created by using the Windows XP platform toolset run on Windows XP and Windows Server 2003, but those apps can also run on more recent operating systems—for example, Windows Vista, Windows 7, Windows Server 2008, Windows 8, or Windows Server 2012.

以 Windows XP 为目标

To target Windows XP

  • 在解决方案资源管理器中,打开项目的快捷菜单,然后选择属性.
  • 在项目的属性页"对话框中,在配置属性"、常规"下,将平台工具集"属性设置为所需的 Windows XP 工具集.例如,选择 Visual Studio 2012 – Windows XP (v110_xp) 来创建与 Microsoft Visual C++ 2012 Redistributable 库二进制兼容的代码.

这篇关于从 Visual Studio 2015 企业更新 1 定位 Windows xp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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