https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2019
下载离线安装包到d:\vs2019layout
vs_enterprise__1449377144.1524143988.exe –layout d:\vs2019layout –all –includeRecommended –includeOptional –lang zh-CN
直接安装
vs_enterprise__1449377144.1524143988.exe –all –lang zh-CN
离线安装包常用的组件
vs_enterprise__1449377144.1524143988.exe –layout d:\vs2019layout –add Microsoft.VisualStudio.Workload.Azure –add Microsoft.VisualStudio.Workload.NetWeb –add Microsoft.VisualStudio.Workload.NetCoreTools –add Component.GitHub.VisualStudio –add Microsoft.Component.HelpViewer –add Microsoft.VisualStudio.Component.LinqToSql –includeOptional –lang zh-CN