Use offline or online installation
2025-10-09
Written by: xiaobin
Note: Use Windows 10/11 from the Long-Term Servicing Channel (LTSC).
Win10 must be at least version 1809.
Win11 must be at least version 24H2.
.\vs_community.exe --layout D:\v17v16 `
--add Microsoft.VisualStudio.Component.CoreEditor `
--add Microsoft.VisualStudio.Workload.CoreEditor `
--add Microsoft.VisualStudio.Component.Roslyn.Compiler `
--add Microsoft.VisualStudio.Component.TextTemplating `
--add Microsoft.Component.MSBuild `
--add Microsoft.VisualStudio.Component.VC.CoreIde `
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
--add Microsoft.VisualStudio.Component.VC.Redist.14.Latest `
--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core `
--add Microsoft.VisualStudio.Workload.NativeDesktop `
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
--lang en-US
.\vs_community.exe --layout D:\v15 `
--add Microsoft.VisualStudio.Component.CoreEditor `
--add Microsoft.VisualStudio.Workload.CoreEditor `
--add Microsoft.VisualStudio.Component.Roslyn.Compiler `
--add Microsoft.Component.MSBuild `
--add Microsoft.VisualStudio.Component.Static.Analysis.Tools `
--add Microsoft.VisualStudio.Component.TextTemplating `
--add Microsoft.VisualStudio.Component.VC.CoreIde `
--add Microsoft.VisualStudio.Component.VC.Redist.14.Latest `
--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core `
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
--add Microsoft.Component.VC.Runtime.UCRTSDK `
--add Microsoft.VisualStudio.Component.Windows81SDK `
--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81 `
--add Microsoft.VisualStudio.Workload.NativeDesktop `
--lang en-US
optional: