小提示
观看 Visual Studio 2022 发布活动的录制内容,了解新功能,听取提示和技巧,并下载免费的数字材料。
开发者社区 | Visual Studio 2022 路线图 | 系统要求 | 兼容性 | 可分发代码 | 发行历史记录 | 许可条款 | 博客 | 最新版本已知问题 | Visual Studio 新增功能文档
Visual Studio 2022 包含许多新功能和令人兴奋的功能和 IDE 生产力增强功能,以支持 Windows 应用开发、跨平台移动开发、Azure 开发、Web 和云开发等。 若要试用 Visual Studio 2022,请参阅 Visual Studio 2022 的下载。 有关此版本中所有新增功能的详细信息,请参阅 Visual Studio 2022 发行说明 和 Visual Studio 2022 中的新增功能。
- 有关 Visual Studio Code 的更多信息,请参阅 Visual Studio Code 常见问题解答。
安装
可安装并使用 Visual Studio 2022 和 Visual Studio 早期版本(包括 Visual Studio 2019、Visual Studio 2017、Visual Studio 2015、Visual Studio 2013 和 Visual Studio 2012)。
下载
单击按钮即可下载最新版 Visual Studio 2022。 有关如何安装和更新 Visual Studio 2022 的说明,请参阅将 Visual Studio 2022 更新到最新版本。 另请参阅如何脱机安装的说明。
访问 Visual Studio 网站,下载其他 Visual Studio 2022 产品。
注意:安装包大小因当前的 Visual Studio 配置而异。
系统要求
有关安装和运行 Visual Studio 2022 系列产品的系统要求的信息,请参阅 Visual Studio 2022 系统要求页面。
反馈和支持
获取支持或提交有关 Visual Studio 的反馈,请参阅:
将项目升级到 Visual Studio 2022
遵循受支持的升级路径时,Visual Studio 源、解决方案和项目文件将继续工作;但是,应该会对源进行一些更改。 虽然我们无法保证版本之间的二进制兼容性,但我们尽最大努力记录重大更改,以帮助你进行更新。
注释
有关如何将项目迁移到 Visual Studio 2022 的详细信息,请参阅 移植、迁移和升级 Visual Studio 项目。
平台目标
Visual Studio 提供先进的工具和技术,用于创建利用 Windows、Android、iOS 或 Linux 等最新平台功能的应用。 Visual Studio 2022 还面向早期平台,因此你可以创建新的应用或现代化在早期版本的 Windows 上执行的现有应用,同时利用 Visual Studio 2022 中增强的开发工具、质量启用和团队协作功能。 有关详细信息,请参阅 管理项目中的引用 和 Visual Studio 多重目标概述。
- 开发 Windows 应用
- 开发 Android 应用
- iOS 应用开发
- 开发 Linux 应用
- 开发 macOS 应用
- 为其他技术和平台开发应用程序
Visual Studio 2022 对 Windows 开发的支持
下表介绍了可以使用 Visual Studio 2022 生成应用的Microsoft Windows 平台。
生成在 Windows 客户端上运行的应用
Windows 客户端版本 | 使用适用于本机和托管经典 Windows 桌面开发的工具 | 使用工具进行 UWP 应用开发 |
---|---|---|
Windows 11 Windows 10 |
是的 (请参阅下面的说明) |
是的 (请参阅下面的说明) |
Windows 10 团队版 | 不適用 | 是的 需要远程调试。 |
Windows 11 S Windows 10 S |
不適用 | 是的 需要远程调试。 |
Windows 10 LTSC | 是的 需要远程调试。 |
是的 需要远程调试。 |
HoloLens | 否 | 是的 请参阅 Windows 全息开发者中心。 |
Xbox One | 不適用 | 是的 请参阅 Xbox 开发者中心。 |
Windows 8.1 | 是的 | 暂无 使用 Visual Studio 2015。 |
Windows 8 (Windows 8) | 否 | 暂无 |
Windows 7 | 是的 | 不適用 |
Windows Vista | 否 | 不適用 |
Windows XP | 否 | 不適用 |
注释
- 有关 Microsoft 操作系统的支持信息,请参阅 Microsoft 支持生命周期 和 Windows 10 版本信息。
- 有关 Microsoft .NET Framework 的支持信息,请参阅 .NET Framework 支持生命周期常见问题解答和.NET Framework 系统要求。
- 在 Windows 11 或 Windows 10 上安装 Visual Studio 时,所有目标平台的通用 Windows 应用开发都可用。
- Unity 和 .NET 多平台应用 UI(.NET MAUI)也可用于在 Windows 11 或 Windows 10 上跨平台开发通用 Windows 应用。
生成在 Windows Phone 上运行的应用
Windows Phone 版本 | 使用适用于本机和托管经典 Windows 桌面开发的工具 | 使用工具进行 UWP 应用开发 |
---|---|---|
Windows 10 移动版 | 否 | 暂无 使用 Visual Studio 2017。 |
Windows Phone 8.1 和 8.0 | 否 | 暂无 使用 Visual Studio 2015。 |
Windows Phone 7.x | 否 | 暂无 使用 Visual Studio 2012。 |
注释
- 有关 Microsoft 操作系统的支持信息,请参阅 Microsoft 支持生命周期 和 Windows 10 版本信息。
生成在 Windows Server 上运行的应用
Windows Server 版本 | 使用适用于本机和托管经典 Windows 桌面开发的工具 | 使用工具进行 UWP 应用开发 |
---|---|---|
Windows Server 2019 | 是的 | 是的 (请参阅下面的说明) |
Windows Server 2016 | 是的 | 是的 (请参阅下面的说明) |
Windows Server 2016, Nano Server 安装选项 | 是的,适用于 .NET Core 和 Win32 的子集 请参阅 Nano Server 开发人员中心。 |
否 |
Windows Server 2012 R2 | 是的 | Windows 应用商店的应用开发不可用。 |
Windows Server 2012 | 是的 | Windows 应用商店的应用开发不可用。 |
Windows Server 2008 R2 | 是的 | 不適用 |
Windows Server 2008 | 否 | 不適用 |
Windows Server 2003 | 否 | 不適用 |
注释
- 有关 Microsoft 操作系统的支持信息,请参阅 Microsoft 支持生命周期 和 Windows 10 版本信息。
- 有关 Microsoft .NET Framework 的支持信息,请参阅 .NET Framework 支持生命周期常见问题解答和.NET Framework 系统要求。
- 使用 Windows Server 2016 或 Windows Server 2019 时,可以从命令行生成通用 Windows 应用。 UWP 开发(包括设计、编辑和本地调试)在 Windows Server 上不可用。 可以将这些应用部署到 Windows 服务器,然后远程调试它们。
生成在 Windows Embedded 设备上运行的应用
Windows Embedded 版本 | 使用适用于本机和托管经典 Windows 桌面开发的工具 | 使用工具进行 UWP 应用开发 |
---|---|---|
Windows 10 IoT 核心版 | 是的,适用于 Win32 API 的一个子集 请参阅 IoT 核心 API 移植工具以获取详细信息。 |
是的 有关其他工具和资源,请参阅 Windows IoT 开发中心。 |
Windows 10 IoT 移动企业版 | 否 | 是的 有关其他工具和资源,请参阅 Windows IoT 开发中心。 |
Windows 10 IoT 企业版 | 是的 有关其他工具和资源,请参阅 Windows IoT 开发人员中心>。 |
是的 有关其他工具和资源,请参阅 Windows IoT 开发中心。 |
Windows Embedded 8 标准版和 8.1 行业版 | 是的 | 否 |
Windows Embedded Compact 2013 | 否 | 不適用 |
Windows Embedded 7 (Compact、Standard 和 POSReady) | 否 | 不適用 |
Windows Embedded CE 6.0 及更早版本 | 否 | 不適用 |
Windows XP Embedded(包括 POSReady 2009、WES 2009、WEPOS) | 否 | 不適用 |
注释
- 有关 Microsoft 操作系统的支持信息,请参阅 Microsoft 支持生命周期 和 Windows 10 版本信息。
- 有关 Microsoft .NET Framework 的支持信息,请参阅 .NET Framework 支持生命周期常见问题解答和.NET Framework 系统要求。
Visual Studio 2022 对于 .NET 开发的支持
Visual Studio 2022 支持开发使用任何 .NET 实现的应用。 在工作负载和项目类型中,可以找到对 .NET Framework、.NET Core、Mono、.NET Native for Universal Windows Platform (UWP)、C#、F# 和 Visual Basic 的支持。 Visual Studio 2022 支持以下 .NET 实现:
- .NET Framework 版本 4.8.1、4.8、4.7.2、4.7.1、4.7 和 4.6.2
- .NET Core 8.0 预览版、7.0 版、6.0 版。
- .NET Native
- 单
注释
有关上述每个实现以及通用 API 规范 .NET Standard 的详细信息,请参阅 .NET 体系结构组件。 另请参阅 NET 支持策略。
Visual Studio 2022 对 Android 开发的支持
Visual Studio 2022 允许你使用 .NET 和 C# 或 C++ 来开发本机 Android 应用。 Visual Studio Tools for Unity 和 Unreal Engine 支持 Android 游戏开发。 还可以在 Mac 上使用 .NET MAUI VSCode 扩展来构建 Android 应用。
可以使用 Visual Studio 设置轻松获取使用 .NET MAUI 或C++进行移动开发所需的 Android SDK 和 Android API 级别。 可以使用“Android SDK 管理器”单独下载额外的 API 级别。 还可以使用 Visual Studio 安装程序获取 Android 本机开发工具包(R10E)、Java SE 开发工具包和 Apache Ant。
有关详细信息,请参阅使用 Visual Studio 进行 Android 开发和移动应用开发。
注释
有关适用于 Android 的 .NET 开发的信息,请参阅 使用 .NET MAUI 的 Android 和 iOS。
Visual Studio 2022 对 iOS 开发的支持
使用 remotebuild、vcremote、Visual Studio Tools for Unity 或 Visual Studio Pair to Mac 时,Visual Studio 2022 允许使用 C++、Unity 或 .NET 和 Mac 生成和调试适用于 iOS 的应用。 .NET 支持 iOS 12.2 及更高版本,并且需要 Xcode 16.2 或更高版本和 macOS 14.5“Sonoma”或更高版本。 还可以使用 .NET MAUI VSCode 扩展,在 Mac 上构建 iOS 应用。
注释
有关详细信息,请参阅 Visual Studio 中的跨平台移动开发。 有关 iOS 的 .NET 开发的信息,请参阅 Android 和 iOS 使用 .NET MAUI。
Visual Studio 2022 对 Linux 开发的支持
Visual Studio 2022 允许使用 C++、Python 和 Node.js生成和调试适用于 Linux 的应用。 创建适用于 Linux 的 C++ 应用需要 Visual C++ 的 Linux 开发扩展。 使用 Python 或 Node 创建应用,js 要求在目标 Linux 计算机上启用远程调试。 还可以使用新式语言(如 C#、VB 和 F#)创建、生成和远程调试 .NET Core 和 ASP.NET Core 应用程序。
注释
有关 Linux 上 .NET 开发的信息,请参阅 在 Linux 上安装 .NET。
- CentOS 9,10
- Debian 11、 12
- Fedora 40, 41
- openSUSE 15.6
- Red Hat Enterprise Linux 8、 9
- Oracle Linux 8、9
- Ubuntu 16.04、18.04、20.04、22.04、24.04、24.10
注释
有关详细信息,请参阅 https://dot.net/core。
Visual Studio 2022 对 macOS 开发的支持
Visual Studio 2022 使你能够生成面向 macOS 的控制台应用程序和 ASP.NET 应用程序。 但不支持调试。 有关其他 macOS 开发工具选项,请尝试 Visual Studio Code。 Visual Studio Code 为 macOS 用户提供简洁且可扩展的开发工具体验。
注释
有关适用于 macOS 的 .NET 开发的信息,请参阅 在 macOS 上安装 .NET。
其他平台和技术
Visual Studio 2022 还支持以下平台和技术。 有关详细信息,请参阅 https://visualstudio.microsoft.com/vs/features/。
- 蟒蛇
- Android (请参阅 https://www.android.com)
- Apache Ant
- Azure Web 应用程序和连接的服务,包括 Azure Data Lake
- Microsoft CodeGen 的 Clang (请参阅 https://github.com/llvm/llvm-project
- ClickOnce
- CMake (见 https://www.cmake.org)
- 椰子 (见 https://www.cocos.com/)
- 码头工人
- Entity Framework 6
- F#
- Git for Windows 和 GitHub
- LLVM项目中的 LLVM
- Microsoft SQL Server 2014-2022 和 Azure SQL 数据库
- Microsoft Office 365、Office 2016、Office 2013、Office 2010
- Visual Studio App Center
- Node.js
- PowerShell
- 蟒
- TypeScript(版本 3.6 及更高版本)和 JavaScript
- 团结
- Unreal Engine
- 使用 ASP.NET、HTML5/CSS3、JavaScript、Node.js、Python 或 TypeScript 进行 Web 开发
与早期版本的兼容性
.NET 框架
.NET 4.8 是 .NET Framework 版本 4.0 - 4.7.2 的高度兼容就地更新。
注释
有关详细信息,请参阅 .NET Framework 4.8、4.7、4.6 和 4.5 的迁移指南。
团队资源管理器、Azure DevOps Server 和 Team Foundation Server
用于 Visual Studio 2022 的团队资源管理器将连接到 Azure DevOps Server 2019、Team Foundation Server 2017、Team Foundation Server 2015、Team Foundation Server 2013、Team Foundation Server 2012 和 Team Foundation Server 2010 SP1。