From 41f6340f4c2f45ba2e5ca441b61925378e0adb77 Mon Sep 17 00:00:00 2001 From: "Mike Jones (Docs)" Date: Wed, 3 Jun 2026 15:32:50 -0700 Subject: [PATCH 1/3] Update versioning and content for Debugging techniques article --- .../write-better-code-with-visual-studio.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/debugger/write-better-code-with-visual-studio.md b/docs/debugger/write-better-code-with-visual-studio.md index 8b0987106e0..795cbb1c382 100644 --- a/docs/debugger/write-better-code-with-visual-studio.md +++ b/docs/debugger/write-better-code-with-visual-studio.md @@ -1,7 +1,7 @@ --- title: Debugging Techniques and Tools description: Write better code with fewer bugs by using Visual Studio to fix exceptions and resolve errors, and make improvements to your code. -ms.date: 5/22/2026 +ms.date: 06/03/2026 ms.topic: how-to helpviewer_keywords: - "debugger" @@ -224,7 +224,12 @@ When you select this item, Visual Studio adds the `using System.Text` statement 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**). +::: moniker range="visualstudio" +## Fix the remaining errors +::: moniker-end +::: moniker range="vs-2022" ## Fix the remaining errors and warnings +::: moniker-end 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. @@ -258,6 +263,8 @@ internal int points; The red squiggly lines in the code editor go away. +::: moniker range="vs-2022" + 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. ![Warning message for unassigned variable](../debugger/media/write-better-code-warning-message.png) @@ -276,10 +283,17 @@ item.totalpoints += users[i].points; ``` The green squiggle goes away. +::: moniker-end ## Fix an exception +::: moniker range="visualstudio" +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. +::: moniker-end + +::: moniker range="vs-2022" 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. +::: moniker-end 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. From 6933cf1b342a020388928c0ad09ddd83a730c19f Mon Sep 17 00:00:00 2001 From: Gordon Hogenson Date: Thu, 4 Jun 2026 13:09:39 -0700 Subject: [PATCH 2/3] Review and update date Updated the date for the documentation on specifying an application icon. --- .../how-to-specify-an-application-icon-visual-basic-csharp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ide/how-to-specify-an-application-icon-visual-basic-csharp.md b/docs/ide/how-to-specify-an-application-icon-visual-basic-csharp.md index b8f5c770c5f..d8193895f56 100644 --- a/docs/ide/how-to-specify-an-application-icon-visual-basic-csharp.md +++ b/docs/ide/how-to-specify-an-application-icon-visual-basic-csharp.md @@ -1,7 +1,7 @@ --- title: 'Set an app icon (Visual Basic, C#)' description: Learn how to specify the icon that File Explorer and the Windows taskbar display for a compiled Visual Basic or C# application. -ms.date: 09/27/2024 +ms.date: 06/04/2026 ms.topic: how-to helpviewer_keywords: - icons [Visual Studio], application From a8c9381dfe479d7b40c7f7a1bd00f3fd018a4e51 Mon Sep 17 00:00:00 2001 From: Gordon Hogenson Date: Thu, 4 Jun 2026 13:18:01 -0700 Subject: [PATCH 3/3] Review and update date --- docs/msbuild/build-process-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/msbuild/build-process-overview.md b/docs/msbuild/build-process-overview.md index 3c5df463dee..1e4fec5c896 100644 --- a/docs/msbuild/build-process-overview.md +++ b/docs/msbuild/build-process-overview.md @@ -1,7 +1,7 @@ --- title: How MSBuild builds projects description: Discover how MSBuild processes your project files, whether you invoke the build tool from Visual Studio or from a command line or script. -ms.date: 8/14/2025 +ms.date: 06/04/2026 ms.topic: overview helpviewer_keywords: - MSBuild, build process overview