Visual Studio 2022 Offline Install May 2026

Here’s a helpful step-by-step guide to performing an offline installation of Visual Studio 2022.


Example: .NET desktop + C++ dev, English only

vs_enterprise.exe --layout C:\vs_offline\vs2022_layout ^
  --add Microsoft.VisualStudio.Workload.ManagedDesktop ^
  --add Microsoft.VisualStudio.Workload.NativeDesktop ^
  --lang en-US

Error: "Layout contains packages that are not valid"

  • Delete C:\ProgramData\Microsoft\VisualStudio\Packages cache and recreate the layout.

Recommended Command (Targeted Download)

It is more practical to download only what your team needs. Use the --add parameter to specify workloads (formerly called "components").

Here is the syntax to download the "Desktop development with C++" and ".NET desktop development" workloads, including the English language pack: visual studio 2022 offline install

vs_enterprise.exe --layout C:\VS2022_Offline_Layout ^
--add Microsoft.VisualStudio.Workload.NativeDesktop ^
--add Microsoft.VisualStudio.Workload.ManagedDesktop ^
--includeRecommended ^
--lang en-US

Parameter Breakdown:

  • --layout: The target folder for your offline cache.
  • --add: The Workload ID (see list below).
  • --includeRecommended: Downloads the recommended optional components for each workload.
  • --includeOptional: (Not shown) Downloads every optional component. Use sparingly.
  • --lang: The language pack (e.g., en-US, de-DE, zh-CN).

Common Workload IDs for Visual Studio 2022

| Workload Description | Workload ID | | :--- | :--- | | .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop | | Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop | | Universal Windows Platform development | Microsoft.VisualStudio.Workload.Universal | | Game development with C++ | Microsoft.VisualStudio.Workload.NativeGame | | Game development with Unity | Microsoft.VisualStudio.Workload.ManagedGame | | ASP.NET and web development | Microsoft.VisualStudio.Workload.NetWeb | | Azure development | Microsoft.VisualStudio.Workload.Azure | | Python development | Microsoft.VisualStudio.Workload.Python | | Node.js development | Microsoft.VisualStudio.Workload.Node | | Office/SharePoint development | Microsoft.VisualStudio.Workload.Office | | Data storage and processing | Microsoft.VisualStudio.Workload.Data | Here’s a helpful step-by-step guide to performing an

🔁 Keeping layout updated

From the layout folder, run:

vs_enterprise.exe --layout D:\VS2022_Layout --lang en-US

It will download only changed files (delta updates). Example:


Step 6: Serving the Layout via Network Share (Best for Teams)

Copying a 40GB folder to 50 USB drives is inefficient. Instead, create a read-only network share.

  1. Create your layout on a server (e.g., D:\VS2022_Layout).
  2. Share the folder: \\BuildServer\VS2022_Layout.
  3. Give Domain Computers or Authenticated Users Read permissions.
  4. On each developer's machine, run:
    \\BuildServer\VS2022_Layout\vs_professional.exe
    

Important: Ensure the network share path uses the same drive letter or UNC path consistently via Group Policy or login scripts.

Basic Command (Community Edition)

Replace the path in the command below with the location where you want to save the files.

vs_community.exe --layout c:\VS2022Offline --lang en-US

Basic command structure:

vs_enterprise.exe --layout <layout_path> --add <workload_IDs> --lang <language>