Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Last active January 6, 2022 11:13
Show Gist options
  • Save Postrediori/573e842e34e8e7414b36b17594bbc3eb to your computer and use it in GitHub Desktop.
Save Postrediori/573e842e34e8e7414b36b17594bbc3eb to your computer and use it in GitHub Desktop.
Creating offline cache for MS Visual Studio

Create a local install cache

For C++ desktop development, run:

vs_community.exe --layout C:\VS2022Cache --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US

For .NET desktop development, run:

vs_community.exe --layout C:\VS2022Cache --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeOptional --lang en-US

Install Visual Studio from the local cache

Then use this command to run the installation of C++ desktop development:

C:\VS2022Cache\vs_community.exe --noweb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended

Then use this command to run the installation of .NET desktop development:

C:\VS2022Cache\vs_community.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeOptional

Components

  • Visual Studio core editor - Microsoft.VisualStudio.Workload.CoreEditor
  • Azure development - Microsoft.VisualStudio.Workload.Azure
  • Data storage and processing - Microsoft.VisualStudio.Workload.Data
  • Data science and analytical applications - Microsoft.VisualStudio.Workload.DataScience
  • .NET desktop development - Microsoft.VisualStudio.Workload.ManagedDesktop
  • Game development with Unity - Microsoft.VisualStudio.Workload.ManagedGame
  • Linux development with C++ - Microsoft.VisualStudio.Workload.NativeCrossPlat
  • Desktop development with C++ - Microsoft.VisualStudio.Workload.NativeDesktop
  • Game development with C++ - Microsoft.VisualStudio.Workload.NativeGame
  • Mobile development with C++ - Microsoft.VisualStudio.Workload.NativeMobile
  • .NET Core cross-platform development - Microsoft.VisualStudio.Workload.NetCoreTools
  • Mobile development with .NET - Microsoft.VisualStudio.Workload.NetCrossPlat
  • ASP.NET and web development - Microsoft.VisualStudio.Workload.NetWeb
  • Node.js development - Microsoft.VisualStudio.Workload.Node
  • Office/SharePoint development - Microsoft.VisualStudio.Workload.Office
  • Python development - Microsoft.VisualStudio.Workload.Python
  • Universal Windows Platform development - Microsoft.VisualStudio.Workload.Universal
  • Visual Studio extension development - Microsoft.VisualStudio.Workload.VisualStudioExtension

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment