Skip to content

Commit 948dbf0

Browse files
authored
Merge pull request #8644 from MicrosoftDocs/main638035285506599413sync_temp
Repo sync for protected CLA branch
2 parents 0e34ecc + f697bef commit 948dbf0

File tree

36 files changed

+3329
-2739
lines changed

36 files changed

+3329
-2739
lines changed

docs/code-quality/roslyn-analyzers-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Code analysis using Roslyn analyzers
2+
title: Code analysis using Roslyn analyzers
33
ms.date: 01/15/2022
44
description: Become familiar with source code analysis in Visual Studio. Learn about code fixes and the different types of analyzers and severity levels.
55
ms.custom: SEO-VS-2020, devdivchpfy22

docs/install/applying-administrator-updates.md

Lines changed: 37 additions & 41 deletions
Large diffs are not rendered by default.

docs/install/automated-installation-with-response-file.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Automate installation with a response file
3-
description: Learn how to create a JSON response file that helps you automate your Visual Studio installation
4-
ms.date: 12/7/2021
3+
description: Learn how to create a response JSON file that helps you automate your Visual Studio installation
4+
ms.date: 11/3/2022
55
ms.topic: conceptual
66
helpviewer_keywords:
77
- response file
@@ -96,7 +96,7 @@ When you create or update a layout, a response.template.json file is also create
9696

9797
::: moniker range="=vs-2019"
9898

99-
The following `response.json` file example will initialize a Visual Studio Enterprise client install to select several common workloads and components, to select both the English and French UI languages, and to have the update location configured to point back to the layout. Note that for Visual Studio 2019, the update location (channelURI) can only be configured during initial installation and cannot be changed after the fact _unless_ you use the functionality in the latest installer. Refer to the [Set defaults for enterprise deployments of Visual Studio](set-defaults-for-enterprise-deployments.md#configuring-source-location-for-updates) and the [Configure your layout to always include and provide the latest installer](create-a-network-installation-of-visual-studio.md#configure-the-layout-to-always-include-and-provide-the-latest-installer) for information on how to configure this.
99+
The following `response.json` file example will initialize a Visual Studio Enterprise client install to select several common workloads and components, to select both the English and French UI languages, and to have the update location configured to look for sources in the layout. Note that for Visual Studio 2019, the update location (channelURI) can only be configured during initial installation and cannot be changed after the fact _unless_ you use the functionality in the latest installer. Refer to the [Set defaults for enterprise deployments of Visual Studio](set-defaults-for-enterprise-deployments.md#configuring-source-location-for-updates) and the [Configure your layout to always include and provide the latest installer](create-a-network-installation-of-visual-studio.md#configure-the-layout-to-always-include-and-provide-the-latest-installer) for information on how to configure this.
100100

101101
```Example response.json
102102
{
@@ -111,7 +111,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
111111
"passive": false,
112112
"includeRecommended": true,
113113
"norestart": false,
114-
114+
115115
"addProductLang": [
116116
"en-US",
117117
"fr-FR"
@@ -133,7 +133,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
133133

134134
::: moniker range="=vs-2022"
135135

136-
The following `response.json` file example will initialize a Visual Studio Enterprise client install to select several common workloads and components, to select both the English and French UI languages, and to have the update location configured to point back to the layout.
136+
The following `response.json` file example will initialize a Visual Studio Enterprise client install to select several common workloads and components, to select both the English and French UI languages, to always remove components that have transitioned to out of support when the client is being updated, and to have the update location configured to look for sources in the layout. See the list of out-of-support components [here](out-of-support-components.md).
137137

138138
```Example response.json
139139
{
@@ -148,6 +148,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
148148
"passive": false,
149149
"includeRecommended": true,
150150
"norestart": false,
151+
"removeOos": true,
151152

152153
"addProductLang": [
153154
"en-US",

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

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Command-line parameter examples for installation
33
description: Customize these examples to create your own command-line installation of Visual Studio.
4-
ms.date: 3/3/2022
4+
ms.date: 11/3/2022
55
ms.topic: conceptual
66
ms.assetid: 837F31AA-F121-46e9-9996-F8BCE768E579
77
author: anandmeg
@@ -18,11 +18,11 @@ ms.technology: vs-installation
1818

1919
To illustrate how to [use command-line parameters to install Visual Studio](use-command-line-parameters-to-install-visual-studio.md), here are several examples that you can customize to match your needs.
2020

21-
In each example, `vs_enterprise.exe`, `vs_professional.exe` and `vs_community.exe` represent the respective edition of the Visual Studio bootstrapper, which is the small (approximately 1MB) file that initiates the download process. If you are using a different edition, substitute the appropriate bootstrapper name.
21+
In each example, `vs_enterprise.exe`, `vs_professional.exe` and `vs_community.exe` represent the respective edition of the Visual Studio bootstrapper, which is the small (~1MB) file that initiates the download process. If you're using a different edition, substitute the appropriate bootstrapper name.
2222

23-
All commands require administrative elevation, and a User Account Control prompt will be displayed if the process is not started from an elevated prompt.
23+
All commands require administrative elevation, and a User Account Control prompt will be displayed if the process isn't started from an elevated prompt.
2424

25-
You can use the `^` character at the end of a command line to concatenate multiple lines into a single command. Alternatively, you can simply place these lines together onto a single row. In PowerShell, the equivalent is the backtick (`` ` ``) character.
25+
You can use the `^` character at the end of a command line to concatenate multiple lines into a single command. Alternatively, you can place these lines together onto a single row. In PowerShell, the equivalent is the backtick (`` ` ``) character.
2626

2727
For lists of the workloads and components that you can install by using the command line, see the [Visual Studio workload and component IDs](workload-and-component-ids.md) page.
2828

@@ -47,7 +47,7 @@ For lists of the workloads and components that you can install by using the comm
4747

4848
## Update in two steps
4949

50-
* Update a Visual Studio instance via the command line, with no interactive prompts but progress displayed. If the bootstrapper is on the client machine, then you can run this from the client. Otherwise, you will need to run this from the layout. The first command updates the installer, and the second command updates the Visual Studio product.
50+
* Update a Visual Studio instance via the command line, with no interactive prompts but progress displayed. If the bootstrapper is on the client machine, then you can run this command from the client. Otherwise, you'll need to run this command from the layout. The first command updates the installer, and the second command updates the Visual Studio product.
5151

5252
```shell
5353
vs_enterprise.exe --update --quiet --wait
@@ -59,7 +59,7 @@ For lists of the workloads and components that you can install by using the comm
5959
6060
## Using --wait
6161

62-
* Use `--wait` in batch files or scripts to wait for the Visual Studio installer to complete before the next command is executed. For batch files, an `%ERRORLEVEL%` environment variable will contain the return value of the command, as documented in the [Use command-line parameters to install Visual Studio](use-command-line-parameters-to-install-visual-studio.md) page. Some command utilities require additional parameters to wait for completion and to get the installer's return value. The following is an example of the additional parameters used with the PowerShell script command 'Start-Process':
62+
* Use `--wait` in batch files or scripts to wait for the Visual Studio installer to complete before the next command is executed. For batch files, an `%ERRORLEVEL%` environment variable will contain the return value of the command, as documented in the [Use command-line parameters to install Visual Studio](use-command-line-parameters-to-install-visual-studio.md) page. Some command utilities require additional parameters to wait for completion and to get the installer's return value. The following command is an example of the additional parameters used with the PowerShell script command 'Start-Process':
6363

6464
```shell
6565
start /wait vs_professional.exe --installPath "C:\VS" --passive --wait > nul
@@ -87,15 +87,15 @@ For lists of the workloads and components that you can install by using the comm
8787

8888
## Using --layout to create a network layout or a local cache
8989

90-
* Download the Visual Studio core editor (the most minimal Visual Studio configuration). Only include the English language pack:
90+
* Create a layout that includes only the Visual Studio core editor (the most minimal Visual Studio configuration) and the English language pack:
9191

9292
```shell
9393
vs_professional.exe --layout C:\VS ^
9494
--lang en-US ^
9595
--add Microsoft.VisualStudio.Workload.CoreEditor
9696
```
9797

98-
* Download the .NET desktop and .NET web workloads along with all recommended components. Only include the English language pack:
98+
* Create a layout that includes the .NET desktop and .NET web workloads, along with all recommended components, English only.
9999

100100
```shell
101101
vs_professional.exe --layout C:\VS ^
@@ -123,7 +123,7 @@ For lists of the workloads and components that you can install by using the comm
123123
```
124124

125125
## Using --channelURI
126-
Using the Visual Studio 2022 or later installer, it is possible to [configure where Visual Studio looks for updates](/visualstudio/install/update-visual-studio?view=vs-2022&preserve-view=true#configure-source-location-of-updates-1). This is otherwise known as the update channel or the source location of updates. The following table gives example values for channelURI and what they mean.
126+
Using the Visual Studio 2022 or later installer, it's possible to [configure where Visual Studio looks for updates](/visualstudio/install/update-visual-studio?view=vs-2022&preserve-view=true#configure-source-location-of-updates-1). The `--channelURI` is otherwise known as the update channel or the source location of updates. The following table gives example values for channelURI and what they mean.
127127

128128
| **Channel Name** | **--channelURI** |
129129
|------------------|------------------|
@@ -134,37 +134,44 @@ Using the Visual Studio 2022 or later installer, it is possible to [configure wh
134134
| Visual Studio 2017 Release channel | `https://aka.ms/vs/15/release/channel` |
135135
| Custom layout - Private Channel | `\\layoutserver\share\path\channelmanifest.json` |
136136

137-
If you choose to use a custom layout as the update channel, then be aware of the following:
137+
If you choose to use a custom layout as the update channel, then be aware of the following guidelines:
138138
* the --channelURI must point to the 'channelmanifest.json' file in the custom layout.
139139
* Administrators can configure [how the custom layout "Private Channel" is displayed in the Update Settings UI by configuring the client's registry settings](/visualstudio/install/set-defaults-for-enterprise-deployments#configuring-source-location-for-updates).
140140

141141
## Using --remove
142142

143-
::: moniker range="vs-2019"
144-
145143
* Remove the Profiling Tools component from the default installed Visual Studio instance:
146144

147145
```shell
148146
vs_enterprise.exe modify ^
149-
--installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" ^
147+
--installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" ^
150148
--remove Microsoft.VisualStudio.Component.DiagnosticTools ^
151149
--passive
152150
```
153151

154-
::: moniker-end
152+
## Using --removeOos
153+
>[!NOTE]
154+
>This command requires using the VS 2022 version 17.4 or later installer. Follow the guidance here for [how to acquire the latest installer on your client machine](/install/update-visual-studio.md#install-the-latest-and-greatest-installer).
155155
156-
::: moniker range=">=vs-2022"
157-
158-
* Remove the Profiling Tools component from the default installed Visual Studio instance:
156+
* Modify an installation and remove all [components that have transitioned to an out-of-support state](out-of-support-components.md) from the default installed Visual Studio instance:
159157

160158
```shell
161159
vs_enterprise.exe modify ^
162160
--installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" ^
163-
--remove Microsoft.VisualStudio.Component.DiagnosticTools ^
161+
--removeOos true ^
164162
--passive
165163
```
166164

167-
::: moniker-end
165+
* Adjust the update settings to persistently remove all components that have transitioned to an out-of-support state every time the product updates:
166+
167+
```shell
168+
vs_enterprise.exe modifySettings ^
169+
--channelURI https://aka.ms/vs/17/release.LTSC.17.0/channel ^
170+
--productID Microsoft.VisualStudio.Product.Enterprise ^
171+
--newChannelURI \\layoutserver\share\path\channelmanifest.json ^
172+
--removeOos true ^
173+
--quiet
174+
```
168175

169176
## Using --path
170177

@@ -218,5 +225,5 @@ If you choose to use a custom layout as the update channel, then be aware of the
218225

219226
* [Visual Studio Administrator Guide](visual-studio-administrator-guide.md)
220227
* [Use command-line parameters to install Visual Studio](use-command-line-parameters-to-install-visual-studio.md)
221-
* [Create an offline installation of Visual Studio](create-an-offline-installation-of-visual-studio.md)
228+
* [Create a network installation of Visual Studio](create-a-network-installation-of-visual-studio.md)
222229
* [Visual Studio workload and component IDs](workload-and-component-ids.md)

0 commit comments

Comments
 (0)