vs_professional__2019.exe --layout C:\vs2019-offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeCrossPlat --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.VisualStudioExtension --add Component.GitHub.VisualStudio --lang zh-CN
由于VS的功能组件繁多,这里对VS2019的功能进行了梳理,可以根据自己的需要--add下载即可。官方说明点这里
功能 | ID | 组件描述 |
Visual Studio 核心编辑器 | Microsoft.VisualStudio.Component.CoreEditor | |
C++ 用户的 Visual Studio 起始页 | Microsoft.VisualStudio.Component.StartPageExperiment.Cpp | |
Azure 开发 | Microsoft.VisualStudio.Workload.Azure | 使用 .NET Core 和 .NET Framework 开发云应用和创建资源的 Azure SDK、工具和项目。 还包括用于容器化应用程序的工具,包括 Docker 支持。 |
数据存储和处理 | Microsoft.VisualStudio.Workload.Data | 使用 SQL Server、Azure Data Lake 或 Hadoop 连接、开发和测试数据解决方案。 |
数据科学和分析应用程序 | Microsoft.VisualStudio.Workload.DataScience | 用于创建数据科学应用程序的语言和工具,包括 Python 和 F#。 |
.NET 桌面开发 | Microsoft.VisualStudio.Workload.ManagedDesktop | 通过 .NET Core 和 .NET Framework,使用 C#、Visual Basic 和 F# 生成 WPF、Windows 窗体和控制台应用程序。 |
使用 Unity 的游戏开发 | Microsoft.VisualStudio.Workload.ManagedGame | 使用 Unity(功能强大的跨平台开发环境)创建 2D 和 3D 游戏。 |
使用 C++ 的 Linux 开发 | Microsoft.VisualStudio.Workload.NativeCrossPlat | 创建和调试在 Linux 环境中运行的应用程序。 |
使用 C++ 的桌面开发 | Microsoft.VisualStudio.Workload.NativeDesktop | 使用所选工具(包括 MSVC、Clang、CMake 或 MSBuild)生成适用于 Windows 的新式 C++ 应用。 |
使用 C++ 的游戏开发 | Microsoft.VisualStudio.Workload.NativeGame | 以 DirectX、Unreal 或 Cocos2d 为后盾,利用 C++ 的强大功能生成专业游戏。 |
使用 C++ 的移动开发 | Microsoft.VisualStudio.Workload.NativeMobile | 使用 C++ 生成适用于 iOS、Android 或 Windows 的跨平台应用程序。 |
.NET Core 跨平台开发 | Microsoft.VisualStudio.Workload.NetCoreTools | 使用 .NET Core、ASP.NET Core、HTML/JavaScript 和包括 Docker 支持的容器生成跨平台应用程序。 |
使用 .NET 的移动开发 | Microsoft.VisualStudio.Workload.NetCrossPlat | 使用 Xamarin 生成适用于 iOS、Android 或 Windows 的跨平台应用程序。 |
ASP.NET 和 Web 开发 | Microsoft.VisualStudio.Workload.NetWeb | 使用 ASP.NET Core、ASP.NET、HTML/JavaScript 和包括 Docker 支持的容器生成 Web 应用程序。 |
Node.js 开发 | Microsoft.VisualStudio.Workload.Node | 使用 Node.js(一个由异步事件驱动的 JavaScript 运行时)生成可缩放的网络应用程序。 |
Office/SharePoint 开发 | Microsoft.VisualStudio.Workload.Office | 使用 C#、VB 和 JavaScript 创建 Office 和 SharePoint 外接程序、SharePoint 解决方案和 VSTO 外接程序。 |
Python 开发 | Microsoft.VisualStudio.Workload.Python | 对 Python 进行编辑、调试、交互式开发和源代码管理。 |
通用 Windows 平台开发 | Microsoft.VisualStudio.Workload.Universal | 使用 C#、VB、或可选 C++ 为通用 Windows 平台创建应用程序。 |
Visual Studio 扩展开发 | Microsoft.VisualStudio.Workload.VisualStudioExtension | 为 Visual Studio 创建加载项和扩展,包括新命令、代码分析器和工具窗口。 |
官方说明末尾还有部分独立组件,主要包含了一些扩展以及SDK等,就不列举了,感兴趣的可以在上面官方链接点击进去查看