Skip to content

Commit d08e9ee

Browse files
committed
Add examples for --add
1 parent 7d9b43f commit d08e9ee

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/install/command-line-parameter-examples.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Command-line parameter examples for installation
33
description: Customize command-line parameter examples to create your own installation of Visual Studio by setting parameters, such as installPath, wait, all, remove, and more.
4-
ms.date: 3/11/2024
4+
ms.date: 10/03/2024
55
ms.topic: conceptual
66
author: anandmeg
77
ms.author: meghaanand
@@ -105,6 +105,24 @@ The following command is an example of using `--wait` with the PowerShell script
105105
vs_enterprise.exe --all
106106
```
107107

108+
## Using --add to add workloads or components
109+
110+
* Use `--add` with the install command to add one or more workload or component IDs. To include multiple workloads or components, repeat the --add command.
111+
112+
```shell
113+
vs_enterprise.exe --installPath "C:\VS" ^
114+
--add Microsoft.VisualStudio.Workload.ManagedDesktop ^
115+
--includeRecommended
116+
```
117+
118+
* Use `--add` with the modify command to add one or more workload or component IDs. To include multiple workloads or components, repeat the --add command.
119+
120+
```shell
121+
vs_enterprise.exe modify --installPath "C:\VS" ^
122+
--add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended ^
123+
--add Microsoft.VisualStudio.Workload.Data;includeRecommended;includeOptional
124+
```
125+
108126
## Using --includeRecommended
109127

110128
* Install a second instance of Visual Studio Professional using a nickname on a machine with Visual Studio Community edition already installed, with support for Node.js development:

0 commit comments

Comments
 (0)