1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| # 可用命令行来自动选择所需组件: vs_BuildTools.exe --path install="C:\Soft\VisualStudio\BuildTools" --config "C:\Soft\.vsconfig"
# 也可手动打开vs_BuildTools.exe下载,主要是要包含相关组件,.vsconfig内容如下: { "version": "1.0", "components": [ "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.Component.MSBuild", "Microsoft.VisualStudio.Component.CoreBuildTools", "Microsoft.VisualStudio.Workload.MSBuildTools", "Microsoft.VisualStudio.Component.Windows10SDK", "Microsoft.VisualStudio.Component.VC.CoreBuildTools", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", "Microsoft.VisualStudio.Component.VC.Redist.14.Latest", "Microsoft.VisualStudio.Component.TextTemplating", "Microsoft.VisualStudio.Component.VC.CoreIde", "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", "Microsoft.VisualStudio.Component.Windows11SDK.22621", "Microsoft.VisualStudio.Workload.VCTools" ] }
# 默认安装路径: Visual Studio IDE: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools 下载缓存: C:\ProgramData\Microsoft\VisualStudio\Packages 共享组件工具: C:\Program Files (x86)\Microsoft Visual Studio\Shared SDK目录: C:\Program Files (x86)\Windows Kits ,C:\Program Files (x86)\Microsoft SDKs
# 我的安装路径: C:\Soft\VisualStudio\BuildTools , C:\Soft\VisualStudio\Packages C:\Soft\VisualStudio\Shared , C:\Soft\VisualStudio\Windows Kits
|