Skip to content

Commit 70a17e7

Browse files
committed
merge from master
2 parents 30c5906 + ff8cb61 commit 70a17e7

28 files changed

+32
-118
lines changed

.openpublishing.redirection.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7752,12 +7752,12 @@
77527752
},
77537753
{
77547754
"source_path": "scripting-docs/winscript/index.md",
7755-
"redirect_url": "/script/winscript/active-script-debugging-overview",
7755+
"redirect_url": "/scripting/winscript/active-script-debugging-overview",
77567756
"redirect_document_id": false
77577757
},
77587758
{
77597759
"source_path": "scripting-docs/winscript/reference/index.md",
7760-
"redirect_url": "/script/winscript/windows-script-interfaces-reference",
7760+
"redirect_url": "/scripting/winscript/reference/windows-script-interfaces-reference",
77617761
"redirect_document_id": false
77627762
},
77637763
{
@@ -8589,6 +8589,11 @@
85898589
"source_path": "docs/code-quality/ca2243-attribute-string-literals-should-parse-correctly.md",
85908590
"redirect_url": "/visualstudio/code-quality/ca2243",
85918591
"redirect_document_id": true
8592+
},
8593+
{
8594+
"source_path": "subscriptions/vs-office-dev.md",
8595+
"redirect_url": "/visualstudio/subscriptions/vs-m365",
8596+
"redirect_document_id": false
85928597
}
85938598
]
85948599
}

docs/code-quality/how-to-customize-the-code-analysis-dictionary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ To include a term in the list of terms that code analysis identifies as deprecat
144144

145145
To include a suggested alternate term in the warning, specify the alternate in the PreferredAlternate attribute of the Term element. You can leave the attribute value empty if you do not want to suggest an alternate.
146146

147-
- The deprecated term in Dictionary/Words/ Deprecated/Term element is not case-sensitive.
147+
- The deprecated term in Dictionary/Words/Deprecated/Term element is not case-sensitive.
148148

149149
- The PreferredAlternate attribute value is case-sensitive. Use Pascal case for compound alternates.
150150

@@ -179,9 +179,9 @@ Terms in the Dictionary/Words/Deprecated node are applied to the following code
179179

180180
The built-in dictionary identifies some terms as single, discrete terms rather than a compound term. To include a term in the list of terms that code analysis identifies as a compound word and to specify the correct casing of the term, add the term as the inner text of a Dictionary/Words/Compound/Term element. In the CompoundAlternate attribute of the Term element, specify the individual words that make up the compound term by capitalizing the first letter of the individual words (Pascal case). Note that the term specified in the inner text is automatically added to the Dictionary/Words/DiscreteExceptions list.
181181

182-
- The deprecated term in Dictionary/Words/ Deprecated/Term element is not case-sensitive.
182+
- The compound term in Dictionary/Words/Compound/Term element is not case-sensitive.
183183

184-
- The PreferredAlternate attribute value is case-sensitive. Use Pascal case for compound alternates.
184+
- The CompoundAlternate attribute value is case-sensitive. Use Pascal case for compound alternates.
185185

186186
**Example**
187187

@@ -268,4 +268,4 @@ Terms in the Dictionary/Acronyms/CasingExceptions node are applied to the follow
268268

269269
5. From the **Build Action** list, select **CodeAnalysisDictionary**.
270270

271-
6. From the **Copy to Output Directory** list, select **Do not copy**.
271+
6. From the **Copy to Output Directory** list, select **Do not copy**.

docs/debugger/xaml-hot-reload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The following are known limitations of XAML Hot Reload. To work around any limit
4848
|Adding new controls, classes, windows, or other files to your project while the app is running|Not Supported|Not Supported|None|
4949
|Managing NuGet packages (adding/removing/updating packages)|Not Supported|Not Supported|None|
5050
|Changing data binding that uses the {x:Bind} markup extension|N/A|Supported starting in Visual Studio 2019|This requires Windows 10 version 1809 (build 10.0.17763). Not supported in Visual Studio 2017 or previous versions.|
51+
|Changing x:Uid directives is not supported|N/A|Not Supported|None|
5152

5253
## Error messages
5354

docs/ide/step-10-write-code-for-additional-buttons-and-a-check-box.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ This code adds functionality to the buttons you added earlier. Without this code
2626
## How to write code for additional buttons and a check box
2727

2828
Add the following code to your **Form1** code file (*Form1.cs* or *Form1.vb*).
29-
> [!IMPORTANT]
30-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
29+
30+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
3131

3232
[!code-csharp[VbExpressTutorial1Step9_10#2](../ide/codesnippet/CSharp/step-10-write-code-for-additional-buttons-and-a-check-box_1.cs)]
3333

docs/ide/step-2-create-a-random-addition-problem.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ In the second part of this tutorial, you make the quiz challenging by adding mat
3636
[!code-csharp[VbExpressTutorial3Step2#1](../ide/codesnippet/CSharp/step-2-create-a-random-addition-problem_1.cs)]
3737
[!code-vb[VbExpressTutorial3Step2#1](../ide/codesnippet/VisualBasic/step-2-create-a-random-addition-problem_1.vb)]
3838

39-
> [!IMPORTANT]
40-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
39+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
4140

4241
You've added a Random object to your form and named the object **randomizer**.
4342

docs/ide/step-3-add-a-countdown-timer.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ In the third part of this tutorial, you'll add a countdown timer to track the nu
3030
[!code-vb[VbExpressTutorial3Step3#5](../ide/codesnippet/VisualBasic/step-3-add-a-countdown-timer_1.vb)]
3131
[!code-csharp[VbExpressTutorial3Step3#5](../ide/codesnippet/CSharp/step-3-add-a-countdown-timer_1.cs)]
3232

33-
> [!IMPORTANT]
34-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
33+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
3534

3635
Now you need a method that actually counts the seconds, such as a timer, which raises an event after the amount of time that you specify.
3736

docs/ide/step-4-add-the-checktheanswer-parens-method.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ In the fourth part of this tutorial, you'll write a method, `CheckTheAnswer()`,
3535
[!code-vb[VbExpressTutorial3Step4#8](../ide/codesnippet/VisualBasic/step-4-add-the-checktheanswer-parens-method_1.vb)]
3636
[!code-csharp[VbExpressTutorial3Step4#8](../ide/codesnippet/CSharp/step-4-add-the-checktheanswer-parens-method_1.cs)]
3737

38-
> [!IMPORTANT]
39-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
38+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
4039

4140
Next, you'll check the answer by updating the code in the method for the timer's <xref:System.Windows.Forms.Timer.Tick> event handler to call the new `CheckTheAnswer()` method.
4241

docs/ide/step-5-add-enter-event-handlers-for-the-numericupdown-controls.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ In the fifth part of this tutorial, you'll add <xref:System.Windows.Forms.Contro
5656
[!code-vb[VbExpressTutorial3Step5_6#11](../ide/codesnippet/VisualBasic/step-5-add-enter-event-handlers-for-the-numericupdown-controls_1.vb)]
5757
[!code-csharp[VbExpressTutorial3Step5_6#11](../ide/codesnippet/CSharp/step-5-add-enter-event-handlers-for-the-numericupdown-controls_1.cs)]
5858

59-
> [!IMPORTANT]
60-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
59+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
6160

6261
This code may look complex, but you can understand it if you look at it step by step. First, look at the top of the method: `object sender` in C# or `sender As System.Object` in Visual Basic. This parameter refers to the object whose event is firing, which is known as the sender. In this case, the sender object is the NumericUpDown control. So, in the first line of the method, you specify that the sender isn't just any generic object but specifically a NumericUpDown control. (Every NumericUpDown control is an object, but not every object is a NumericUpDown control.) The NumericUpDown control is named **answerBox** in this method, because it will be used for all of the NumericUpDown controls on the form, not just the sum NumericUpDown control. Because you declare the answerBox variable in this method, its scope applies only to this method. In other words, the variable can be used only within this method.
6362

docs/ide/step-6-add-a-subtraction-problem.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ In the sixth part of this tutorial, you'll add a subtraction problem and learn h
3737
[!code-vb[VbExpressTutorial3Step5_6#12](../ide/codesnippet/VisualBasic/step-6-add-a-subtraction-problem_1.vb)]
3838
[!code-csharp[VbExpressTutorial3Step5_6#12](../ide/codesnippet/CSharp/step-6-add-a-subtraction-problem_1.cs)]
3939

40-
> [!IMPORTANT]
41-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
40+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
4241

4342
The names of the new integer variables—**minuend** and **subtrahend**—aren't programming terms. They're the traditional names in arithmetic for the number that's being subtracted (the subtrahend) and the number from which the subtrahend is being subtracted (the minuend). The difference is the minuend minus the subtrahend. You could use other names, because your program doesn't require specific names for variables, controls, components, or methods. You must follow rules such as not starting names with digits, but you can generally use names such as x1, x2, x3, and x4. However, generic names make code difficult to read and problems nearly impossible to track down. To keep variable names unique and helpful, you'll use the traditional names for multiplication (multiplicand × multiplier = product) and division (dividend ÷ divisor = quotient) later in this tutorial.
4443

docs/ide/step-6-name-your-button-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ You can verify the names by choosing the control selector drop-down list in the
5959
End Sub
6060
```
6161

62-
[!INCLUDE [devlang-control](./includes/devlang-control.md)]
62+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
6363

6464
You're looking at code called `showButton_Click()` (alternatively, `ShowButton_Click()`). The IDE added this to the form's code when you opened the code file for the **showButton** button. At design-time, when you open the code file for a control in a form, code is generated for the control if it doesn't already exist. This code, known as a *method*, runs when you run your app and choose the control - in this case, the **Show a picture** button.
6565

docs/ide/step-7-add-multiplication-and-division-problems.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ In the seventh part of this tutorial, you'll add multiplication and division pro
3030
[!code-vb[VbExpressTutorial3Step7#15](../ide/codesnippet/VisualBasic/step-7-add-multiplication-and-division-problems_1.vb)]
3131
[!code-csharp[VbExpressTutorial3Step7#15](../ide/codesnippet/CSharp/step-7-add-multiplication-and-division-problems_1.cs)]
3232

33-
> [!IMPORTANT]
34-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
33+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
3534

3635
2. As you did before, modify the `StartTheQuiz()` method to fill in random numbers for the multiplication and division problems.
3736

docs/ide/step-8-customize-the-quiz.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ In the last part of the tutorial, you'll explore some ways to customize the quiz
3535
timeLabel.BackColor = Color.Red
3636
```
3737

38-
> [!IMPORTANT]
39-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
38+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
4039

4140
Reset the color when the quiz is over.
4241

docs/ide/step-8-write-code-for-the-show-a-picture-button-event-handler.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ Next, you use IntelliSense to enter more code to open an **Open File** dialog bo
8787
8888
1. Now add one more line of code. You can type it (or copy and paste it), but consider using IntelliSense to add it. The more familiar you are with IntelliSense, the more quickly you can write your own code. Your final `showButton_Click()` method should look similar to the following code.
8989

90-
> [!IMPORTANT]
91-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
90+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
9291

9392
[!code-csharp[VbExpressTutorial1Step8#1](../ide/codesnippet/CSharp/step-8-write-code-for-the-show-a-picture-button-event-handler_1.cs)]
9493

docs/ide/step-9-review-comment-and-test-your-code.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ You just built something that works, and although it's not done yet, it can alre
4848

4949
1. Add the following comment to your code.
5050

51-
> [!IMPORTANT]
52-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
51+
[!INCLUDE [devlang-control-csharp-vb](./includes/devlang-control-csharp-vb.md)]
5352

5453
[!code-csharp[VbExpressTutorial1Step9_10#1](../ide/codesnippet/CSharp/step-9-review-comment-and-test-your-code_1.cs)]
5554

docs/install/build-tools-container-issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following known issues occur when you install Visual Studio Build Tools into
4747
The following known issues might occur when you use a Build Tools container. To see whether issues have been fixed or if there are other known issues, visit https://developercommunity.visualstudio.com.
4848

4949
* IntelliTrace might not work in [some scenarios](https://github.com/Microsoft/vstest/issues/940) within a container.
50-
* On older versions of Docker for Windows, the default container image size is only 20 GB and will not fit Build Tools. Follow [instructions to change image size](https://docs.microsoft.com/virtualization/windowscontainers/manage-containers/container-storage#image-size) to 127 GB or more.
50+
* On older versions of Docker for Windows, the default container image size is only 20 GB and will not fit Build Tools. Follow [instructions to change image size](https://docs.microsoft.com/virtualization/windowscontainers/manage-containers/container-storage#storage-limits) to 127 GB or more.
5151

5252
[!INCLUDE[install_get_support_md](includes/install_get_support_md.md)]
5353

docs/msbuild/updating-an-existing-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you can't use NuGet packages, you can reference MSBuild assemblies that are d
5959

6060
#### Binding redirects
6161

62-
Reference the Microsoft.Build.Locator package to ensure that your application automatically uses the required binding redirects of all versions of MSBuild assemblies to version `15.1.0.0`.
62+
Reference the Microsoft.Build.Locator package to ensure that your application automatically uses the required binding redirects to version 15.1.0.0. Binding redirects to this version support both MSBuild 15 and MSBuild 16.
6363

6464
### Ensure output is clean
6565

0 commit comments

Comments
 (0)