vs_<Edition>.exe --layout <path_to_offline_folder> --add <workload_or_component_ID> --includeRecommended --includeOptional --lang <language_code>
Run as Administrator on an internet‑connected machine. Creating an offline download of Visual Studio 2022 is straightforward with the official bootstrapper and command‑line arguments. This method gives you full control over which workloads and languages are included, allows you to update the cache later, and lets you install on any number of disconnected machines without re‑downloading. visual studio 2022 offline download
echo Offline layout created at %LAYOUT_PATH% pause vs_<Edition>
| Workload | ID | |----------|-----| | .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop | | Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop | | Universal Windows Platform dev | Microsoft.VisualStudio.Workload.Universal | | Game development with Unity | Microsoft.VisualStudio.Workload.ManagedGame | | Game development with C++ | Microsoft.VisualStudio.Workload.NativeGame | | ASP.NET and web dev | Microsoft.VisualStudio.Workload.NetWeb | | Azure development | Microsoft.VisualStudio.Workload.Azure | | Data storage and processing | Microsoft.VisualStudio.Workload.Data | | Office/SharePoint dev | Microsoft.VisualStudio.Workload.Office | echo Offline layout created at %LAYOUT_PATH% pause |
To list available IDs:
vs_Community.exe --layout C:\VS2022_Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --lang en-US
vs_Community.exe --quiet --config install_config.json --noweb Here are frequently used IDs for --add :