--noweb forces the installer to only use the local layout.
vs_community.exe --layout C:\VS_Offline\vs2022_full --add Microsoft.VisualStudio.Workload.All --lang en-US visual studio download offline installer
vs_community.exe --layout C:\VS_Offline\vs2022_layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --lang en-US --noweb forces the installer to only use the local layout
There are several scenarios where an offline installer is useful: follow these steps:
Use the --layout command. Example for Visual Studio 2022 Community:
C:\VS_Offline\vs2022_layout\vs_community.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop
To install Visual Studio using the offline installer, follow these steps: