Skip to content

Commit 3a54c9b

Browse files
Merge pull request #11368 from MicrosoftDocs/main639162939863869208sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 6bdd18c + 41dfb19 commit 3a54c9b

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

docs/debugger/write-better-code-with-visual-studio.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Debugging Techniques and Tools
33
description: Write better code with fewer bugs by using Visual Studio to fix exceptions and resolve errors, and make improvements to your code.
4-
ms.date: 5/22/2026
4+
ms.date: 06/03/2026
55
ms.topic: how-to
66
helpviewer_keywords:
77
- "debugger"
@@ -224,7 +224,12 @@ When you select this item, Visual Studio adds the `using System.Text` statement
224224

225225
The preceding error is a common one that you usually fix by adding a new `using` statement to your code. There are several common, similar errors to this one such as `The type or namespace "Name" cannot be found.` These kinds of errors might indicate a missing assembly reference (right-click the project, choose **Add** > **Reference**), a misspelled name, or a missing library that you need to add (for C#, right-click the project and choose **Manage NuGet Packages**).
226226

227+
::: moniker range="visualstudio"
228+
## Fix the remaining errors
229+
::: moniker-end
230+
::: moniker range="vs-2022"
227231
## Fix the remaining errors and warnings
232+
::: moniker-end
228233

229234
There are a few more squiggles to look at in this code. Here, you see a common type conversion error. When you hover over the squiggle, you see that the code is trying to convert a string to an int, which isn't supported unless you add explicit code to make the conversion.
230235

@@ -258,6 +263,8 @@ internal int points;
258263

259264
The red squiggly lines in the code editor go away.
260265

266+
::: moniker range="vs-2022"
267+
261268
Next, hover over the green squiggle in the declaration of the `points` data member. The code analyzer tells you the variable is never assigned a value.
262269

263270
![Warning message for unassigned variable](../debugger/media/write-better-code-warning-message.png)
@@ -276,10 +283,17 @@ item.totalpoints += users[i].points;
276283
```
277284

278285
The green squiggle goes away.
286+
::: moniker-end
279287

280288
## Fix an exception
281289

290+
::: moniker range="visualstudio"
291+
When you have fixed all the red squiggles at least looked at all the green squiggles, you're ready to start the debugger and run the app.
292+
::: moniker-end
293+
294+
::: moniker range="vs-2022"
282295
When you have fixed all the red squiggles and resolved—or at least investigated—all the green squiggles, you're ready to start the debugger and run the app.
296+
::: moniker-end
283297

284298
Press **F5** (**Debug > Start Debugging**) or the **Start Debugging** button ![Start Debugging](../debugger/media/dbg-tour-start-debugging.png "Start Debugging") in the Debug toolbar.
285299

docs/ide/how-to-specify-an-application-icon-visual-basic-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Set an app icon (Visual Basic, C#)'
33
description: Learn how to specify the icon that File Explorer and the Windows taskbar display for a compiled Visual Basic or C# application.
4-
ms.date: 09/27/2024
4+
ms.date: 06/04/2026
55
ms.topic: how-to
66
helpviewer_keywords:
77
- icons [Visual Studio], application

docs/msbuild/build-process-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: How MSBuild builds projects
33
description: Discover how MSBuild processes your project files, whether you invoke the build tool from Visual Studio or from a command line or script.
4-
ms.date: 8/14/2025
4+
ms.date: 06/04/2026
55
ms.topic: overview
66
helpviewer_keywords:
77
- MSBuild, build process overview

0 commit comments

Comments
 (0)