Skip to content

Commit 0b0387a

Browse files
authored
Merge pull request #4534 from MicrosoftDocs/master637123970234197843
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents a01bb72 + 49ad894 commit 0b0387a

File tree

6 files changed

+57
-33
lines changed

6 files changed

+57
-33
lines changed

docs/code-quality/ca1001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Starting with FxCop analyzers 3.x, this rule respects types implementing <xref:S
3939
To fix a violation of this rule, implement <xref:System.IDisposable> and from the <xref:System.IDisposable.Dispose%2A?displayProperty=fullName> method call the <xref:System.IDisposable.Dispose%2A> method of the field.
4040

4141
## When to suppress warnings
42-
Do not suppress a warning from this rule.
42+
In general, do not suppress a warning from this rule. It is OK to suppress the warning when the dispose ownership of the field(s) is not held by the containing type.
4343

4444
## Example
4545
The following example shows a class that violates the rule and a class that satisfies the rule by implementing <xref:System.IDisposable>. The class does not implement a finalizer because the class does not directly own any unmanaged resources.

docs/code-quality/ca1802.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Because the value assigned to the targeted field is computable at compile time,
4545

4646
To fix a violation of this rule, replace the `static` and `readonly` modifiers with the `const` modifier.
4747

48+
> [!NOTE]
49+
> The use of the ([const](/dotnet/csharp/language-reference/keywords/const) modifier is not recommended for all scenarios.
50+
4851
## When to suppress warnings
4952

5053
It is safe to suppress a warning from this rule, or disable the rule, if performance is not of concern.

docs/code-quality/ca2002.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ The following types have a weak identity and are flagged by the rule:
5454

5555
- <xref:System.Threading.Thread>
5656

57+
- [this](/dotnet/csharp/language-reference/keywords/this) or [Me](/dotnet/visual-basic/programming-guide/program-structure/me-my-mybase-and-myclass) object (starting in FxCop 3.0)
58+
5759
## How to fix violations
5860

5961
To fix a violation of this rule, use an object from a type that is not in the list in the Description section.

docs/code-quality/ca2213.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ It's safe to suppress a warning from this rule if:
5656

5757
- The flagged type is not responsible for releasing the resource held by the field (that is, the type does not have *dispose ownership*)
5858
- The call to <xref:System.IDisposable.Dispose%2A> occurs at a deeper calling level than the rule checks
59+
- the dispose ownership of the field(s) is not held by the containing type.
5960

6061
## Example
6162

Loading

docs/install/modify-visual-studio.md

Lines changed: 50 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Modify Visual Studio"
33
titleSuffix: ""
44
description: "Learn how to modify Visual Studio, step-by-step."
55
ms.custom: "H1Hack27Feb2017,seodec18"
6-
ms.date: 12/03/2019
6+
ms.date: 12/19/2019
77
ms.topic: conceptual
88
helpviewer_keywords:
99
- "modify Visual Studio"
@@ -29,7 +29,7 @@ It's easy to modify Visual Studio so that it includes only what you want, when y
2929

3030
::: moniker range="vs-2017"
3131

32-
Not only have we made it easier for you to personalize Visual Studio to match the tasks you want to accomplish, we've also made it easier to customize Visual Studio, too. To do so, start the new Visual Studio Installer and make the changes you want.
32+
Not only have we made it easier for you to personalize Visual Studio to match the tasks you want to accomplish, we've also made it easier to customize Visual Studio, too. To do so, open the new Visual Studio Installer and make the changes you want.
3333

3434
::: moniker-end
3535

@@ -38,25 +38,13 @@ Here's how.
3838
>[!IMPORTANT]
3939
>To install, update, or modify Visual Studio, you must log on with an account that has administrative permissions. For more information, see [User permissions and Visual Studio](../ide/user-permissions-and-visual-studio.md).
4040
41-
## Modify workloads
42-
43-
::: moniker range="vs-2017"
44-
45-
[Workloads](https://visualstudio.microsoft.com/vs/support/selecting-workloads-visual-studio-2017/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
46-
47-
::: moniker-end
48-
49-
::: moniker range="vs-2019"
50-
51-
Workloads contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
52-
53-
::: moniker-end
54-
5541
>[!NOTE]
56-
> The following procedure assumes that you have an internet connection.
42+
> The following procedures assume that you have an internet connection.
5743
>
5844
> For more information about how to modify a previously created [offline installation](create-an-offline-installation-of-visual-studio.md) of Visual Studio, see both the [Update a network-based installation of Visual Studio](update-a-network-installation-of-visual-studio.md) page and the [Control updates to network-based Visual Studio deployments](controlling-updates-to-visual-studio-deployments.md) page.
5945
46+
## Open the Visual Studio Installer
47+
6048
::: moniker range="vs-2017"
6149

6250
1. Find the Visual Studio Installer on your computer.
@@ -68,21 +56,14 @@ Here's how.
6856
>[!TIP]
6957
>On some computers, the Visual Studio Installer might be listed under the letter **"M"** as the **Microsoft Visual Studio Installer**.<br/><br/> Alternatively, you can find the Visual Studio Installer in the following location: `C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe`
7058
71-
1. Click or tap to start the installer, and then choose **Modify**.
59+
1. Open the installer, and then choose **Modify**.
7260

7361
![Launch or modify Visual Studio](media/modify-visual-studio.png "Modify Visual Studio 2017")
7462

75-
If you have an update pending, the Modify button is in a different place. This way, you can modify Visual Studio without updating it, should you choose to do so. Click **More**, and then choose **Modify**.
76-
77-
![Update or modify Visual Studio](media/modify-or-update-visual-studio.png "Update or modify Visual Studio 2017")
78-
79-
1. From the **Workloads** screen, select or deselect the workloads that you want to install or uninstall.
80-
81-
![Visual Studio 2017 Setup Dialog](media/modify-workloads.png "Choose a workload in Visual Studio 2017")
82-
83-
1. Choose **Modify** again.
84-
85-
1. After the new workloads and components are installed, choose **Launch**.
63+
> [!IMPORTANT]
64+
> If you have an update pending, the Modify button is in a different place. This way, you can modify Visual Studio without updating it, should you choose to do so. Click **More**, and then choose **Modify**.
65+
>
66+
> ![Update or modify Visual Studio](media/modify-or-update-visual-studio.png "Update or modify Visual Studio 2017")
8667
8768
::: moniker-end
8869

@@ -105,7 +86,40 @@ Here's how.
10586

10687
![Update or modify Visual Studio](media/vs-2019/vs-installer-modify.png "Update or modify Visual Studio 2019")
10788

108-
1. In the **Workloads** tab, select or deselect the workloads that you want to install or uninstall.
89+
> [!IMPORTANT]
90+
> If you have an update pending, the Modify button is in a different place. This way, you can modify Visual Studio without updating it, should you want to. Choose **More**, and then choose **Modify**.
91+
>
92+
> ![Update or modify Visual Studio](media/vs-2019/modify-update-visual-studio.png "Update or modify Visual Studio 2019")
93+
94+
::: moniker-end
95+
96+
## Modify workloads
97+
98+
::: moniker range="vs-2017"
99+
100+
[Workloads](https://visualstudio.microsoft.com/vs/support/selecting-workloads-visual-studio-2017/) contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
101+
102+
1. In the Visual Studio Installer, choose the **Workloads** tab, and then select or deselect the workloads that you want.
103+
104+
![Visual Studio 2017 setup dialog](media/modify-workloads.png "Choose a workload in Visual Studio 2019")
105+
106+
1. Choose whether you want to accept the default **Install while downloading** option or the **Download all, then install** option.
107+
108+
![Visual Studio 2017 setup options](media/vs-2019/vs-installer-choose-install-or-download.png "Choose to install while downloading or to download first and install later")
109+
110+
The "Download all, then install" option is handy if you want to download first and then install later.
111+
112+
1. Choose **Modify**.
113+
114+
1. After the new workloads are installed, choose **Launch** from the Visual Studio Installer to open Visual Studio.
115+
116+
::: moniker-end
117+
118+
::: moniker range="vs-2019"
119+
120+
Workloads contain the features you need for the programming language or platform that you're using. Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.
121+
122+
1. In in the Visual Studio Installer, choose the **Workloads** tab, and then select or deselect the workloads that you want.
109123

110124
![Visual Studio 2019 setup dialog](media/vs-2019/vs-installer-modify-workloads.png "Choose a workload in Visual Studio 2019")
111125

@@ -117,13 +131,17 @@ Here's how.
117131

118132
1. Choose **Modify**.
119133

120-
1. After the new workloads and components are installed, choose **Launch** from the Visual Studio Installer.
134+
1. After the new workloads are installed, choose **Launch** from the Visual Studio Installer to open Visual Studio.
121135

122136
::: moniker-end
123137

124138
## Modify individual components
125139

126-
If you don't want to install workloads to customize your Visual Studio installation, choose the **Individual Components** tab from the Visual Studio Installer, select what you want, and then follow the prompts.
140+
If you don't want to use workloads to customize your Visual Studio installation, choose the **Individual Components** tab in the Visual Studio Installer, select the components you want, and then follow the prompts.
141+
142+
## Modify language packs
143+
144+
By default, the installer matches the language of the operating system when it runs for the first time. However, you can change the language whenever you want. To do so, choose the **Language packs** tab in the Visual Studio Installer, select the language you prefer, and then follow the prompts.
127145

128146
[!INCLUDE[install_get_support_md](includes/install_get_support_md.md)]
129147

0 commit comments

Comments
 (0)