"version": "1.0", "components": [ "Microsoft.VisualStudio.Workload.ManagedDesktop", "Microsoft.VisualStudio.Component.CSharp" ], "locale": "en-US"

if ($LASTEXITCODE -eq 0) Write-Host "Layout created successfully at $LayoutPath" else Write-Error "Layout creation failed with exit code $LASTEXITCODE"

Use --add with specific component IDs (not workloads) to trim size further. CreateLayout.ps1