To install Microsoft Visual Studio 2022 Community on a machine without internet access, you must first create a "local layout" on an internet-connected computer. This process involves downloading a small "bootstrapper" file and using command-line arguments to download the full installation packages. 1. Download the Bootstrapper
Visit the official Visual Studio Downloads page and download the Community edition bootstrapper. The file will typically be named vs_community.exe or VisualStudioSetup.exe. 2. Create the Offline Layout
Open a Command Prompt with Administrator privileges and navigate to your download folder. Run a command to download only the specific features (workloads) you need to save time and disk space. For .NET Desktop & Web development:
vs_community.exe --layout C:\VS2022Layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --lang en-US Use code with caution. Copied to clipboard For C++ Desktop development:
vs_community.exe --layout C:\VS2022Layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US Use code with caution. Copied to clipboard For a Full Installation (Not recommended; requires ~45GB+): vs_community.exe --layout C:\VS2022Layout --lang en-US Use code with caution. Copied to clipboard
Note: Ensure your installation path is less than 80 characters long to avoid errors. 3. Transfer and Install Offline microsoft visual studio 2022 community offline installer
Once the download is complete, copy the entire C:\VS2022Layout folder to your offline machine via a USB drive. To install without the installer trying to reach the internet, run this command from an elevated prompt on the offline machine: C:\VS2022Layout\vs_community.exe --noWeb Use code with caution. Copied to clipboard
The --noWeb flag forces the installer to use only the files present in your local layout. Important Considerations Create an offline installation - Visual Studio (Windows)
| Component | Minimum | |-----------|---------| | OS | Windows 10 v1703+, Windows 11, Windows Server 2016+ | | RAM | 4 GB (8 GB+ recommended) | | Disk space | 10–40 GB (depending on workloads) | | Graphics | DirectX 11 capable GPU (for renderer) |
vs_community.exe inside that folder.Or, use command line for silent/automated installation:
\\NetworkShare\VS2022_Layout\vs_community.exe --quiet --wait --norestart
This is perfect for IT admins deploying via SCCM, Intune, or Group Policy. To install Microsoft Visual Studio 2022 Community on
Cause: The bootstrapper inside your layout may still attempt to contact Microsoft for certificate validation or missing workloads.
Fix: Ensure you included the --includeRecommended and --includeOptional when creating the layout, or run the installer with the --noweb switch:
vs_community.exe --noweb --add WorkloadName
The official online bootstrapper (small executable) is downloaded from Microsoft’s website:
https://visualstudio.microsoft.com/vs/community/vs_community.exe (approx. 1–2 MB)This bootstrapper is not the offline installer. It is used to generate the offline layout.
| Scenario | Approximate Size | |----------|------------------| | Minimal layout (core editor + one workload) | 4–8 GB | | Full Community (all workloads + languages) | 40–50 GB | | Typical developer layout (desktop + web + .NET) | 15–25 GB |
Actual size depends on workloads, components, and language packs selected. Navigate to the root of your layout folder
You likely do not need the entire catalog. You can save bandwidth and disk space by specifying exactly which workloads you need. For example:
For Classic Windows Desktop (WinForms/WPF):
vs_community.exe --layout C:\VS2022_Layout --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop
For C++ Game Development:
vs_community.exe --layout C:\VS2022_Layout --lang en-US --add Microsoft.VisualStudio.Workload.NativeDesktop
For .NET Web/Cloud Development:
vs_community.exe --layout C:\VS2022_Layout --lang en-US --add Microsoft.VisualStudio.Workload.NetWeb
For a Full Offline Installer (All workloads):
vs_community.exe --layout C:\VS2022_Layout --lang en-US --all
You can combine workloads:
vs_community.exe --layout C:\VS2022_Layout --lang en-US --add Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetWeb