You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/roslyn-analyzers-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Code analysis using Roslyn analyzers
2
+
title: Code analysis using Roslyn analyzers
3
3
ms.date: 01/15/2022
4
4
description: Become familiar with source code analysis in Visual Studio. Learn about code fixes and the different types of analyzers and severity levels.
Copy file name to clipboardExpand all lines: docs/install/automated-installation-with-response-file.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
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
5
5
ms.topic: conceptual
6
6
helpviewer_keywords:
7
7
- response file
@@ -96,7 +96,7 @@ When you create or update a layout, a response.template.json file is also create
96
96
97
97
::: moniker range="=vs-2019"
98
98
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.
100
100
101
101
```Example response.json
102
102
{
@@ -111,7 +111,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
111
111
"passive": false,
112
112
"includeRecommended": true,
113
113
"norestart": false,
114
-
114
+
115
115
"addProductLang": [
116
116
"en-US",
117
117
"fr-FR"
@@ -133,7 +133,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
133
133
134
134
::: moniker range="=vs-2022"
135
135
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).
137
137
138
138
```Example response.json
139
139
{
@@ -148,6 +148,7 @@ The following `response.json` file example will initialize a Visual Studio Enter
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.
20
20
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.
22
22
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.
24
24
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.
26
26
27
27
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.
28
28
@@ -47,7 +47,7 @@ For lists of the workloads and components that you can install by using the comm
47
47
48
48
## Update in two steps
49
49
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.
51
51
52
52
```shell
53
53
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
59
59
60
60
## Using --wait
61
61
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':
@@ -87,15 +87,15 @@ For lists of the workloads and components that you can install by using the comm
87
87
88
88
## Using --layout to create a network layout or a local cache
89
89
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:
91
91
92
92
```shell
93
93
vs_professional.exe --layout C:\VS ^
94
94
--lang en-US ^
95
95
--add Microsoft.VisualStudio.Workload.CoreEditor
96
96
```
97
97
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.
99
99
100
100
```shell
101
101
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
123
123
```
124
124
125
125
## 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.
127
127
128
128
|**Channel Name**|**--channelURI**|
129
129
|------------------|------------------|
@@ -134,37 +134,44 @@ Using the Visual Studio 2022 or later installer, it is possible to [configure wh
134
134
| Visual Studio 2017 Release channel |`https://aka.ms/vs/15/release/channel`|
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:
138
138
* the --channelURI must point to the 'channelmanifest.json' file in the custom layout.
139
139
* 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).
140
140
141
141
## Using --remove
142
142
143
-
::: moniker range="vs-2019"
144
-
145
143
* Remove the Profiling Tools component from the default installed Visual Studio instance:
>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).
155
155
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:
0 commit comments