Microsoft Visual Studio 2022 does not provide a single ISO file for download . Instead, you must create a local layout
by downloading a small "bootstrapper" file and using it to download only the components you need for your offline machine. Microsoft Learn 1. Download the Bootstrapper
First, download the correct bootstrapper for your edition from the official Visual Studio download page Community: vs_community.exe Professional: vs_professional.exe Enterprise: vs_enterprise.exe 2. Create the Offline Layout
Run the bootstrapper from a Command Prompt with administrator privileges on a machine with internet access. Use the parameter to specify where to save the files. Microsoft Learn Complete Layout (Large - up to 50 GB): vs_enterprise.exe --layout C:\VS2022Layout --lang en-US Use code with caution. Copied to clipboard Specific Workloads (Recommended - smaller size):
To include only specific tools (e.g., .NET desktop and web development), add the parameter: Microsoft Learn
vs_professional.exe --layout C:\VS2022Layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeRecommended --lang en-US Use code with caution. Copied to clipboard 3. Transfer and Install Offline C:\VS2022Layout folder to the offline machine via USB or network. Install Certificates: Certificates folder within your layout and manually install each microsoft visual studio 2022 offline installer download
file to the "Trusted Root Certification Authorities" to prevent installation errors. Run Setup: Launch the installer from your layout folder using the flag to ensure it doesn't try to connect to the internet: C:\VS2022Layout\vs_professional.exe --noWeb Use code with caution. Copied to clipboard Microsoft Learn 4. Activation Professional & Enterprise: Can be activated offline using a 25-digit product key. Community:
support full offline activation; it typically requires a sign-in periodically to stay active. Microsoft Learn Requirements & Maintenance How to install Visual Studio 2022 offline ? - Microsoft Q&A
Once you execute the command, a window will pop up showing the progress.
| Scope | Approx. Size | | :--- | :--- | | .NET desktop only (en-US) | ~6-8 GB | | Web dev + .NET desktop | ~12-15 GB | | Game dev with Unity/Unreal | ~25-30 GB | | Full layout (all workloads + all langs) | 50+ GB |
We will cover two methods: the Command Line method (recommended, full control) and the Visual Studio Installer method (simpler for beginners). Microsoft Visual Studio 2022 does not provide a
This is the official Microsoft method for creating a layout.
Step 1: Download the Bootstrapper Go to the Visual Studio 2022 Downloads page. Download the bootstrapper for your edition:
vs_community.exevs_professional.exevs_enterprise.exeStep 2: Create a Target Folder
Create a directory where your offline files will live. For example: D:\VS2022_Offline.
Step 3: Open Command Prompt as Administrator
Press Win + X, then select Terminal (Admin) or Command Prompt (Admin).
Step 4: Run the Layout Command Navigate to where you saved the bootstrapper and run: Step 3: Wait for the Download Once you
vs_enterprise.exe --layout D:\VS2022_Offline --lang en-US
Breaking down the arguments:
--layout : Tells the bootstrapper to download the full local cache.--lang : Specifies the language pack (en-US, zh-CN, de-DE, ja-JP, etc.).Step 5: Add Workloads (Crucial)
By default, the above command downloads only the core editor. To include specific workloads (e.g., .NET desktop, C++, Python, game dev), add the --add parameter.
Example (Full Stack .NET & C++ Dev):
vs_enterprise.exe --layout D:\VS2022_Offline --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Component.IntelliCode
Recommended Workload IDs:
| Workload | Component ID |
| :--- | :--- |
| .NET Desktop | Microsoft.VisualStudio.Workload.ManagedDesktop |
| C++ Desktop | Microsoft.VisualStudio.Workload.NativeDesktop |
| Universal Windows Platform | Microsoft.VisualStudio.Workload.Universal |
| Game dev (Unity) | Microsoft.VisualStudio.Workload.ManagedGame |
| Game dev (Unreal) | Microsoft.VisualStudio.Workload.NativeGame |
| Python | Microsoft.VisualStudio.Workload.Python |
Step 6: Wait for Completion Downloading 30+ GB can take hours. You will see a live progress log. Do not close the window until it says "Layout generation completed successfully."