Skip to content

Commit 52be4ef

Browse files
authored
Merge pull request #8582 from MicrosoftDocs/main638019038907391903sync_temp
Repo sync for protected CLA branch
2 parents cfc45e1 + 6c1ef73 commit 52be4ef

15 files changed

+91
-32
lines changed

docs/code-quality/code-metrics-values.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Calculate code metrics
3-
ms.date: 11/02/2018
3+
ms.date: 10/20/2022
44
description: Learn about cyclomatic complexity, class coupling, and other Visual Studio code metrics. See how metrics can track development progress and identify risks.
5-
ms.custom: SEO-VS-2020
65
ms.topic: conceptual
76
f1_keywords:
87
- vs.codeanalysis.codemetrics.toolwindow
@@ -35,9 +34,9 @@ The following list shows the code metrics results that Visual Studio calculates:
3534

3635
- **Maintainability Index** - Calculates an index value between 0 and 100 that represents the relative ease of maintaining the code. A high value means better maintainability. Color coded ratings can be used to quickly identify trouble spots in your code. A green rating is between 20 and 100 and indicates that the code has good maintainability. A yellow rating is between 10 and 19 and indicates that the code is moderately maintainable. A red rating is a rating between 0 and 9 and indicates low maintainability. For more information, see [Maintainability index range and meaning](code-metrics-maintainability-index-range-and-meaning.md).
3736

38-
- **Cyclomatic Complexity** - Measures the structural complexity of the code. It is created by calculating the number of different code paths in the flow of the program. A program that has complex control flow requires more tests to achieve good code coverage and is less maintainable. For more information, see the [Uncyclopedia entry for cyclomatic complexity](https://wikipedia.org/wiki/Cyclomatic_complexity).
37+
- **Cyclomatic Complexity** - Measures the structural complexity of the code. It is created by calculating the number of different code paths in the flow of the program. A program that has complex control flow requires more tests to achieve good code coverage and is less maintainable. For more information, see [Cyclomatic complexity](code-metrics-cyclomatic-complexity.md).
3938

40-
- **Depth of Inheritance** - Indicates the number of different classes that inherit from one another, all the way back to the base class. Depth of Inheritance is similar to class coupling in that a change in a base class can affect any of its inherited classes. The higher this number, the deeper the inheritance and the higher the potential for base class modifications to result in a breaking change. For Depth of Inheritance, a low value is good and a high value is bad.
39+
- **Depth of Inheritance** - Indicates the number of different classes that inherit from one another, all the way back to the base class. Depth of Inheritance is similar to class coupling in that a change in a base class can affect any of its inherited classes. The higher this number, the deeper the inheritance and the higher the potential for base class modifications to result in a breaking change. For Depth of Inheritance, a low value is good and a high value is bad. For more information, see [Depth of inheritance](code-metrics-depth-of-inheritance.md).
4140

4241
- **Class Coupling** - Measures the coupling to unique classes through parameters, local variables, return types, method calls, generic or template instantiations, base classes, interface implementations, fields defined on external types, and attribute decoration. Good software design dictates that types and methods should have high cohesion and low coupling. High coupling indicates a design that is difficult to reuse and maintain because of its many interdependencies on other types. For more information, see [Class coupling](code-metrics-class-coupling.md).
4342

docs/debugger/configure-firewall-for-remote-debugging-dialog-box.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ ms.workload:
2727
# Configure Firewall for Remote Debugging Dialog Box
2828

2929
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
30-
This dialog box appears when the Windows Firewall blocks the debugger from receiving information over the network. To continue remote debugging, you must open a hole in the firewall so the debugger can receive information.
30+
This dialog box appears when the Windows Firewall blocks the debugger from receiving information over the network. To continue remote debugging, you must open a port in the firewall so the debugger can receive information.
3131

3232
> [!CAUTION]
33-
> Opening a hole in the Firewall may expose your machine to security threats that the Firewall is designed to block. Opening a hole for remote debugging unblocks ports 4020 and 4021 in Visual Studio 2015. In other versions of Visual Studio, other port numbers are used. For more information, see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md). In addition, it allows the debugger to open additional ports. For more information, see [Configure the Windows Firewall for Remote Debugging](../debugger/configure-the-windows-firewall-for-remote-debugging.md).
33+
> Opening a port in the Firewall may expose your machine to security threats that the Firewall is designed to block. Opening a port for remote debugging unblocks ports 4020 and 4021 in Visual Studio 2015. In other versions of Visual Studio, other port numbers are used. For more information, see [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md). In addition, it allows the debugger to open additional ports. For more information, see [Configure the Windows Firewall for Remote Debugging](../debugger/configure-the-windows-firewall-for-remote-debugging.md).
3434
3535
## UIElement List
3636
**Cancel remote debugging**

docs/debugger/debug-live-azure-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ If it's difficult to recreate a particular state in your app, consider using a c
109109

110110
#### To create a conditional snappoint
111111

112-
1. Right-click a snappoint icon (the hollow ball) and choose **Settings**.
112+
1. Right-click a snappoint icon (the hollow sphere) and choose **Settings**.
113113

114114
![Choose Settings](../debugger/media/snapshot-snappoint-settings.png)
115115

docs/debugger/debug-live-azure-kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ If it's difficult to recreate a particular state in your app, consider using a c
108108

109109
#### To create a conditional snappoint
110110

111-
1. Right-click a snappoint icon (the hollow ball) and choose **Settings**.
111+
1. Right-click a snappoint icon (the hollow sphere) and choose **Settings**.
112112

113113
![Choose Settings](../debugger/media/snapshot-snappoint-settings.png)
114114

docs/debugger/debug-live-azure-virtual-machines-time-travel-debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ In this tutorial, you:
7474

7575
![Screenshot that shows setting a snappoint in the code editor.](../debugger/media/time-travel-debugging-set-snappoint-settings.png)
7676

77-
1. Right-click the snappoint hollow ball icon and choose **Actions** to show the **Snapshot Settings** window.
77+
1. Right-click the snappoint hollow sphere icon and choose **Actions** to show the **Snapshot Settings** window.
7878

7979
![Screenshot that shows the Snapshot Settings window.](../debugger/media/time-travel-debugging-set-snappoint-new.png)
8080

docs/debugger/debug-live-azure-virtual-machines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ If it's difficult to recreate a particular state in your app, consider using a c
114114

115115
#### To create a conditional snappoint
116116

117-
1. Right-click a snappoint icon (the hollow ball) and choose **Settings**.
117+
1. Right-click a snappoint icon (the hollow sphere) and choose **Settings**.
118118

119119
![Choose Settings](../debugger/media/snapshot-snappoint-settings.png)
120120

docs/debugger/debugger-tips-and-tricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If it is difficult or time-consuming to recreate a particular state in your app,
5050

5151
#### To create a conditional breakpoint
5252

53-
1. Right-click a breakpoint icon (the red ball) and choose **Conditions**.
53+
1. Right-click a breakpoint icon (the red sphere) and choose **Conditions**.
5454

5555
2. In the **Breakpoint Settings** window, type an expression.
5656

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Prerequisites for .NET Core on Linux and SSH
3+
description: Prerequisites for debugging .NET Core on Linux and SSH by attaching to a process
4+
services: ""
5+
author: mikejo5000
6+
ms.service: ""
7+
ms.topic: include
8+
ms.date: 10/19/2022
9+
ms.author: mikejo
10+
ms.custom: include file
11+
---
12+
13+
- On the Visual Studio computer, you need to install either the **ASP.NET and web development** workload or the **.NET Core cross-platform development** workload.
14+
15+
- On the Linux server, you need to install SSH server, unzip and install with either curl or wget. For example, on Ubuntu you can do that by running:
16+
17+
``` cmd
18+
sudo apt-get install openssh-server unzip curl
19+
```
20+
21+
SFTP must be enabled as well as SSH. Most SSH distributions install and enable SFTP by default, but that is not always the case.
22+
23+
- On the Linux server, [install the .NET runtime on Linux](/dotnet/core/install/linux), and find the page matching your Linux distribution (such as Ubuntu). The .NET SDK is not required.
24+
25+
- For comprehensive ASP.NET Core instructions, see [Host ASP.NET Core on Linux with Nginx](/aspnet/core/host-and-deploy/linux-nginx) and [Host ASP.NET Core on Linux with Apache](/aspnet/core/host-and-deploy/linux-apache).
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Remote debug AKS on Linux using SSH"
3+
description: Remote debug ASP.NET Core running in Azure Kubernetes Service (AKS) on Linux using Secure Shell (SSH) by attaching to a process. Prepare your app for debugging. Build and deploy the app. Attach the debugger.
4+
ms.date: "10/19/2022"
5+
ms.topic: "conceptual"
6+
helpviewer_keywords:
7+
- "remote debugging, linux"
8+
author: "mikejo5000"
9+
ms.author: "mikejo"
10+
manager: jmartens
11+
ms.technology: vs-ide-debug
12+
ms.workload:
13+
- "multiple"
14+
---
15+
# Remote debug .NET Core running in AKS on Linux using SSH by attaching to a process
16+
17+
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
18+
19+
Starting in Visual Studio 2017, you can attach to an ASP.NET Core process running in Azure Kubernetes Service (AKS) on a remote Linux deployment over Secure Shell (SSH).
20+
21+
## Prerequisites
22+
23+
[!INCLUDE [prerequisites-dotnet-linux-ssh](../debugger/includes/prerequisites-dotnet-linux-ssh.md)]
24+
25+
## Prepare to debug
26+
27+
1. Expose the AKS pod to the SSH port using an SSH key pair.
28+
29+
>[!NOTE]
30+
> Depending on your security configuration, health probes may detect an unhealthy service and tear down the pod.
31+
32+
2. To debug, follow instructions described in [Debug .NET Core on Linux using SSH by attaching to a process](../debugger/remote-debugging-dotnet-core-linux-with-ssh.md).
33+

docs/debugger/remote-debugging-dotnet-core-linux-with-ssh.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,11 @@ ms.workload:
1717

1818
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
1919

20-
Starting in Visual Studio 2017, you can attach to .NET Core processes running on a local or remote Linux deployment over SSH. This article describes how to set up debugging and how to debug. For debugging scenarios using Docker containers, see [Attach to a process running on a Docker container](../debugger/attach-to-process-running-in-docker-container.md) and the [container tools](../containers/edit-and-refresh.md) articles instead. To debug Linux on WSL 2 from Visual Studio (no attach to process), see [Debug .NET Core Apps in WSL 2 with Visual Studio](../debugger/debug-dotnet-core-in-wsl-2.md).
20+
Starting in Visual Studio 2017, you can attach to .NET Core processes running on a local or remote Linux deployment over Secure Shell (SSH). This article describes how to set up debugging and how to debug. For debugging scenarios using Docker containers, see [Attach to a process running on a Docker container](../debugger/attach-to-process-running-in-docker-container.md) and the [container tools](../containers/edit-and-refresh.md) articles instead. To debug Linux on WSL 2 from Visual Studio (no attach to process), see [Debug .NET Core Apps in WSL 2 with Visual Studio](../debugger/debug-dotnet-core-in-wsl-2.md).
2121

2222
## Prerequisites
2323

24-
- On the Visual Studio computer, you need to install either the **ASP.NET and web development** workload or the **.NET Core cross-platform development** workload.
25-
26-
- On the Linux server, you need to install SSH server, unzip and install with either curl or wget. For example, on Ubuntu you can do that by running:
27-
28-
``` cmd
29-
sudo apt-get install openssh-server unzip curl
30-
```
31-
32-
SFTP must be enabled as well as SSH. Most SSH distributions install and enable SFTP by default, but that is not always the case.
33-
34-
- On the Linux server, [install the .NET runtime on Linux](/dotnet/core/install/linux), and find the page matching your Linux distribution (such as Ubuntu). The .NET SDK is not required.
35-
36-
- For comprehensive ASP.NET Core instructions, see [Host ASP.NET Core on Linux with Nginx](/aspnet/core/host-and-deploy/linux-nginx) and [Host ASP.NET Core on Linux with Apache](/aspnet/core/host-and-deploy/linux-apache).
24+
[!INCLUDE [prerequisites-dotnet-linux-ssh](../debugger/includes/prerequisites-dotnet-linux-ssh.md)]
3725

3826
## Prepare your application for debugging
3927

docs/debugger/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@
438438
href: debug-dotnet-core-in-wsl-2.md
439439
- name: Debug .NET Core on Linux using SSH
440440
href: remote-debugging-dotnet-core-linux-with-ssh.md
441+
- name: Remote debug .NET Core running in AKS on Linux using SSH
442+
href: remote-debugging-aks-on-linux-with-ssh.md
441443
- name: Debug with Container Tools >>
442444
href: ../containers/edit-and-refresh.md
443445
- name: Application types

docs/deployment/tutorial-import-publish-settings-iis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Publish to IIS by importing publish settings"
33
description: "Create and import a publishing profile to deploy an application from Visual Studio to IIS"
4-
ms.date: 10/22/2021
4+
ms.date: 10/20/2022
55
ms.topic: tutorial
66
helpviewer_keywords:
77
- "deployment, publish settings"
@@ -30,7 +30,7 @@ These steps apply to ASP.NET and ASP.NET Core web applications.
3030
* Install the latest updates in Visual Studio by selecting **Help** > **Check for Updates**.
3131
* Add the workload by selecting **Tools** > **Get Tools and Features**.
3232

33-
* On your server, you must be running Windows Server 2012, Windows Server 2016, or Windows Server 2019, and you must have the [IIS Web Server role](/iis/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45#solution) correctly installed (required to generate the publish settings file (*\*.publishsettings*)). Either ASP.NET 4.5 or ASP.NET Core must also be installed on the server.
33+
* On your server, you must be running Windows Server 2012 or greater, and you must have the [IIS Web Server role](/iis/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45#solution) correctly installed (required to generate the publish settings file (*\*.publishsettings*)). Either ASP.NET 4.5 or ASP.NET Core must also be installed on the server. The steps in this tutorial were tested in Windows Server 2022.
3434

3535
* To set up ASP.NET Core, see [Host ASP.NET Core on Windows with IIS](/aspnet/core/publishing/iis?tabs=aspnetcore2x#iis-configuration). For ASP.NET Core, make sure you configure the Application Pool to use **No Managed Code**, as described in the article.
3636

docs/designers/disable-dpi-awareness.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,22 @@ The preferred solution to this issue is to restart Visual Studio as a DPI-unawar
5555

5656
When Visual Studio runs as a DPI-unaware process, the designer layout issues are resolved, but fonts may appear blurry and you may see issues in other designers such as the **XAML Designer**.. Visual Studio displays a different yellow informational message when it runs as a DPI-unaware process that says **Visual Studio is running as a DPI-unaware process. WPF and XAML designers might not display correctly.** The informational bar also provides an option to **Restart Visual Studio as a DPI-aware process**.
5757

58+
::: moniker range="<=vs-2019"
59+
5860
> [!NOTE]
59-
> - If you had undocked tool windows in Visual Studio when you selected the option to restart as a DPI-unaware process, the position of those tool windows may change.
61+
> - If you have undocked tool windows in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
6062
> - If you use the default Visual Basic profile, or if you have the **Save new projects when created** option deselected in **Tools** > **Options** > **Projects and Solutions**, Visual Studio cannot reopen your project when it restarts as a DPI-unaware process. However, you can open the project by selecting it under **File** > **Recent Projects and Solutions**.
6163
64+
::: moniker-end
65+
66+
::: moniker range=">=vs-2022"
67+
68+
> [!NOTE]
69+
> - If you have undocked tool windows in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
70+
> - If you use the default Visual Basic profile, Visual Studio cannot reopen your project when it restarts as a DPI-unaware process. However, you can open the project by selecting it under **File** > **Recent Projects and Solutions**.
71+
72+
::: moniker-end
73+
6274
It's important to restart Visual Studio as a DPI-aware process when you're finished working in the **Windows Forms Designer**. If you close and reopen Visual Studio when it's running in DPI-unaware mode, it becomes DPI-aware again. You can also select the **Restart Visual Studio as a DPI-aware process** option in the informational bar.
6375

6476
### Add a registry entry

docs/version-control/git-create-branch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create a branch
33
description: Create a branch for source control in Visual Studio with Git.
4-
ms.date: 03/03/2022
4+
ms.date: 10/20/2022
55
ms.topic: how-to
66
author: TerryGLee
77
ms.author: tglee
@@ -27,8 +27,8 @@ Here's how.
2727
1. In the **Create a new branch** dialog box, enter a branch name.
2828

2929
> [!TIP]
30-
> For branch naming details, see [Special characters in branch and tag names](https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names).
31-
30+
> For branch naming details, see [Special characters in branch and tag names](https://docs.github.com/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names).
31+
3232
:::image type="content" source="media/vs-2022/git-create-new-branch-dialog.png" alt-text="Screenshot of the Create a New Branch dialog box.":::
3333

3434
1. In the **Based on** section, use the drop-down list to choose whether you want to base your new branch off an existing local branch or a remote branch.

0 commit comments

Comments
 (0)