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/in-source-suppression-overview.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ To suppress violations using the code editor, follow these steps:
49
49
50
50
:::image type="content" source="media/suppress-diagnostic-from-editor-attribute.png" alt-text="Screenshot that shows in Source (attribute) selection from the Quick Actions Suppress menu." lightbox="media/suppress-diagnostic-from-editor-attribute.png":::
51
51
52
+
::: moniker range="vs-2019"
52
53
### Suppress violations using the Error List
53
54
54
55
To suppress violations using the **Error List** window, follow these steps:
@@ -74,6 +75,7 @@ Diagnostics from live analysis, or IntelliSense, are always up-to-date with curr
74
75

75
76
76
77
1. Select the diagnostics you want to suppress and proceed as described previously.
78
+
::: moniker-end
77
79
78
80
## Suppress violations using a global suppression file
79
81
@@ -89,6 +91,7 @@ To suppress violations with a global suppression file by using the code editor,
89
91
90
92
Visual Studio creates a tab in the code editor containing the new global suppression file.
91
93
94
+
::: moniker range="vs-2019"
92
95
### Use a global suppression file from the Error List
93
96
94
97
To suppress violations with a global suppression file by using the **Error List** window, follow these steps:
@@ -102,6 +105,7 @@ To suppress violations with a global suppression file by using the **Error List*
102
105

103
106
104
107
1. Select **Apply** to save the global suppression file.
Copy file name to clipboardExpand all lines: docs/code-quality/use-roslyn-analyzers.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,13 @@ Each Roslyn analyzer rule, or *diagnostic*, has a default severity and suppressi
19
19
20
20
## Severity levels
21
21
22
+
::: moniker range=">=vs-2022"
23
+
You can configure the severity of analyzer rules in an [EditorConfig file](#set-rule-severity-in-an-editorconfig-file) and from the [light bulb menu](#set-rule-severity-from-the-light-bulb-menu).
24
+
::: moniker-end
25
+
26
+
::: moniker range="vs-2019"
22
27
In Visual Studio 2019 version 16.3 and later, you can configure the severity of analyzer rules in an [EditorConfig file](#set-rule-severity-in-an-editorconfig-file), from the [light bulb menu](#set-rule-severity-from-the-light-bulb-menu), and from the **Error List** window.
28
+
::: moniker-end
23
29
24
30
The following table shows the different severity options that you can configure for a diagnostic:
25
31
@@ -53,7 +59,6 @@ You can set the rule severity using any of the following methods:
To debug a Visual Studio application on a different computer, install and run the remote tools on the computer where you will deploy your app, configure your project to connect to the remote computer from Visual Studio, and then deploy and run your app.
21
+
To debug a Visual Studio application on a different computer, install and run the remote tools on the computer where you'll deploy your app, configure your project to connect to the remote computer from Visual Studio, and then deploy and run your app.
@@ -29,7 +29,7 @@ For information about remote debugging Universal Windows Apps (UWP), see [Debug
29
29
The remote debugger is supported on Windows 7 and newer and versions of Windows Server starting with Windows Server 2008 Service Pack 2. For a complete list of requirements, see [Requirements](../debugger/remote-debugging.md#requirements_msvsmon).
30
30
31
31
> [!NOTE]
32
-
> Debugging between two computers connected through a proxy is not supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries/regions is not recommended and may fail or be unacceptably slow.
32
+
> Debugging between two computers connected through a proxy isn't supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries/regions isn't recommended and may fail or be unacceptably slow.
33
33
34
34
## Download and Install the remote tools
35
35
@@ -40,6 +40,8 @@ The remote debugger is supported on Windows 7 and newer and versions of Windows
40
40
41
41
## <aname="BKMK_setup"></a> Set up the remote debugger
42
42
43
+
After you install the remote debugger, follow these steps.
@@ -99,7 +101,7 @@ The remote debugger is supported on Windows 7 and newer and versions of Windows
99
101
100
102
## Set Up Debugging with Remote Symbols
101
103
102
-
You should be able to debug your code with the symbols you generate on the Visual Studio computer. The performance of the remote debugger is much better when you use local symbols.
104
+
You should be able to debug your code with the symbols you generate on the Visual Studio computer. The performance of the remote debugger is significantly better when you use local symbols.
103
105
104
106
If you must use remote symbols, you need to specify the remote symbols in Visual Studio by adding a Windows file share to the symbol search path in **Tools > Options > Debugging > Symbols**.
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-csharp.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ For information about remote debugging Universal Windows Apps (UWP), see [Debug
29
29
The remote debugger is supported on Windows 7 and newer and on versions of Windows Server starting with Windows Server 2008 Service Pack 2. For a complete list of requirements, see [Requirements](../debugger/remote-debugging.md#requirements_msvsmon).
30
30
31
31
> [!NOTE]
32
-
> Debugging between two computers connected through a proxy is not supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries/regions is not recommended and may fail or be unacceptably slow.
32
+
> Debugging between two computers connected through a proxy isn't supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries/regions isn't recommended and may fail or be unacceptably slow.
33
33
34
34
## Download and Install the remote tools
35
35
@@ -40,18 +40,20 @@ The remote debugger is supported on Windows 7 and newer and on versions of Windo
40
40
41
41
## <aname="BKMK_setup"></a> Set up the remote debugger
42
42
43
+
After you install the remote debugger, follow these steps.
> If you need to add permissions for additional users, change the authentication mode, or port number for the remote debugger, see [Configure the remote debugger](../debugger/remote-debugging.md#configure_msvsmon).
47
49
48
50
## <aname="remote_csharp"></a> Remote debug the project
49
51
50
-
The debugger cannot deploy Visual C# or Visual Basic desktop applications to a remote machine, but you can still debug them remotely as follows. The following procedure assumes that you want to debug it on a computer named **MJO-DL**, as shown in the illustration below.
52
+
The debugger can't deploy Visual C# or Visual Basic desktop applications to a remote machine, but you can still debug them remotely as follows. The following procedure assumes that you want to debug it on a computer named **MJO-DL**, as shown in the illustration below.
51
53
52
54
1. Create a WPF project named **MyWpf**.
53
55
54
-
If you are trying to remote debug a MAUI app instead of WPF, see [Remote debug a .NET MAUI app on Windows](#remote-debug-a-net-maui-app-on-windows).
56
+
If you're trying to remote debug a MAUI app instead of WPF, see [Remote debug a .NET MAUI app on Windows](#remote-debug-a-net-maui-app-on-windows).
55
57
56
58
2. Set a breakpoint somewhere in the code that is easily reached.
57
59
@@ -86,7 +88,7 @@ The debugger cannot deploy Visual C# or Visual Basic desktop applications to a r
86
88
**MJO-DL:4024** on Visual Studio 2019
87
89
::: moniker-end
88
90
89
-
7. Make sure that **Enable native code debugging**is not selected.
91
+
7. Make sure that **Enable native code debugging**isn't selected.
90
92
91
93
8. Build the project.
92
94
@@ -95,7 +97,7 @@ The debugger cannot deploy Visual C# or Visual Basic desktop applications to a r
95
97
10. Copy the executable that you just built from your Visual Studio computer to the newly created folder on the remote computer.
96
98
97
99
> [!CAUTION]
98
-
> Do not make changes to the code or rebuild (or you must repeat this step). The executable you copied to the remote machine must exactly match your local source and symbols.
100
+
> Don't make changes to the code or rebuild (or you must repeat this step). The executable you copied to the remote machine must exactly match your local source and symbols.
99
101
100
102
You can copy the project manually, use XCopy, Robocopy, PowerShell, or other options.
0 commit comments