echo Layout complete. You can now copy %OFFLINE_PATH% to deployment targets. pause
@echo off SET OFFLINE_PATH=D:\VS2022_Enterprise_Offline SET BOOTSTRAPPER=vs_enterprise.exe echo Creating VS2022 offline layout at %OFFLINE_PATH%... %BOOTSTRAPPER% --layout %OFFLINE_PATH% ^ --lang en-US ^ --add Microsoft.VisualStudio.Workload.ManagedDesktop ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --add Microsoft.VisualStudio.Workload.NetWeb ^ --add Microsoft.VisualStudio.Workload.Data ^ --add Microsoft.VisualStudio.Workload.VisualStudioExtension ^ --includeRecommended ^ --useLatestInstaller microsoft visual studio 2022 offline installer download
A: Each layout has an expiration date (usually 6-12 months). After that, you must run --layout --off while connected to the internet to renew certificates and manifests. echo Layout complete
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 | 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 | for a silent/unattended installation:
vs_enterprise.exe --noweb --add ProductLang en-US Or, for a silent/unattended installation: