
Go to the Visual Studio download page
Find
vs_community.exe --layout C:\VS2022_Offline ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --add Microsoft.VisualStudio.Workload.ManagedDesktop ^ --add Microsoft.VisualStudio.Workload.NetWeb ^ --includeRecommended ^ --lang en-US visual studio community edition offline installer
Write-Host "Offline installer ready at $LayoutPath" -ForegroundColor Green Go to the Visual Studio download page Find vs_community