Use the following syntax to download the full cache for specific workloads. Replace [path] with your target folder (e.g., D:\VS2022_Offline ).
vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Workload.ManagedDesktop microsoft visual studio 2022 community offline installer
Common switches include:
vs_community.exe --layout C:\VSLayout --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Roslyn.Compiler --lang en-US Use the following syntax to download the full