使用 Visual Studio 生成的应用可以面向各种平台。
VS 2026 18.0 中永久删除了对 32 位 ARM 的支持。
Visual Studio 目标 OS 和体系结构支持
| 操作系统 | x86 | X64 | ARM64a |
|---|---|---|---|
| Windows XP b | X | X | |
| Windows Vistac | X | X | |
| Windows 7d | X | X | |
| Windows 8d | X | X | |
| Windows 8.1d | X | X | |
| Windows 10操作系统 | X | X | X |
| Windows 11 | X | X | X |
| Windows Server 2003 b | X | X | |
| Windows Server 2008d | X | X | |
| Windows Server 2008 R2d | X | X | |
| Windows Server 2012d | X | X | |
| Windows Server 2012 R2d | X | X | |
| Windows Server 2016 | X | X | |
| Windows Server 2019 | X | X | |
| Windows Server 2022 | X | X | |
| Windows Server 2025 | X | X | |
| Android e | X | X | X |
| iOS e | X | ||
| Linux f | X | X | X |
a ARM64 支持在 Visual Studio 2017 及更高版本中提供。
b Visual Studio 不再支持面向 Windows XP。 使用 Visual Studio 2017、Visual Studio 2015、Visual Studio 2013 和 Visual Studio 2012 Update 1 中包含的 Windows XP 平台工具集生成 Windows XP 和 Windows Server 2003 项目。
c Visual Studio 2022 版本 17.0 及更高版本不再支持面向 Windows Vista 或 Windows Server 2008。
d Visual Studio 2026 18.0 及更高版本不再支持面向 Windows 7/8/8.1 或 Windows Server 2008 R2/2012/2012 R2。 Visual Studio 2026 及更高版本面向 Windows 10 或更高版本和 Windows Server 2016 或更高版本。
e 可以在 Visual Studio 2017 及更高版本的安装程序中安装 使用 C++ 的移动开发工作负载。 在 Visual Studio 2015 安装程序中,选择用于跨平台移动开发的 Visual C++ 可选组件,以面向 iOS 或 Android 平台。 有关说明,请参阅安装用于跨平台移动开发的 Visual C++。 要生成 iOS 代码,必须拥有 Mac 计算机并满足其他需求。 有关先决条件和安装说明的列表,请参阅安装和配置工具以使用 iOS 进行生成。 可以生成 x86 或 ARM 代码以匹配目标硬件。 使用 x86 配置以针对某些 Android 设备进行生成。 使用 ARM 配置以针对 iOS 设备和大多数 Android 设备进行生成。
f 你可以使用 Visual Studio 2017 及更高版本的安装程序中的 Linux 开发的 C++ 工作负载 来针对 Linux 平台。 有关说明,请参阅下载、安装和设置 Linux 工作负载。 此工具集在目标计算机上编译可执行文件,使用户能够为支持的任何体系结构执行生成操作。
有关如何设置目标平台配置的信息,请参阅如何:针对 64 位 x64 平台配置 Visual C++ 项目。