Visual Studio 2022 Offline Install Site
D:\VS2022_Layout\vs_enterprise.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop --passive --norestart
By default, the command above downloads every workload available for Visual Studio. This consumes massive amounts of bandwidth and disk space. To save space, it is highly recommended to download only the workloads you need (e.g., .NET Desktop Development, C++ Desktop Development).
Example: Downloading specific workloads
vs_community.exe --layout C:\VS2022Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeRecommended
For enterprise deployment scripts:
D:\VS2022_Offline\vs_enterprise.exe --quiet --noweb ^
--add Microsoft.VisualStudio.Workload.ManagedDesktop ^
--add Microsoft.VisualStudio.Workload.NetWeb ^
--includeRecommended ^
--installPath C:\Program Files\Microsoft Visual Studio\2022\Enterprise
Open the Command Prompt (cmd) on your internet-connected machine. You need to run the bootstrapper with specific command-line arguments to download the files rather than installing them. visual studio 2022 offline install
