Skip to content

Repo sync for protected CLA branch #7641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
46ae706
Fix error
j-martens Jan 4, 2022
9a19cca
Update uninstall-visual-studio.md
j-martens Jan 4, 2022
8c6094d
More clean up
j-martens Jan 4, 2022
5db3197
Update install_get_support_md.md
j-martens Jan 4, 2022
6c10792
Add Debugging Azure App Services Docs
WardenGnaw Jan 24, 2022
e5f1782
Update ms.date field
WardenGnaw Jan 25, 2022
e5610b0
Add VS2022 moniker
WardenGnaw Jan 26, 2022
bd42d58
Address PR feedback
WardenGnaw Feb 1, 2022
049350f
Missed a comment
WardenGnaw Feb 1, 2022
d22c111
Merge branch 'main' of https://github.com/j-martens/visualstudio-docs…
j-martens Feb 7, 2022
c7a76da
redirect to git n vs (internal)
j-martens Feb 7, 2022
4cc9c06
removing file to be redirected.
j-martens Feb 7, 2022
7aca9d8
Tweak to title for seo. (internal)
j-martens Feb 7, 2022
4575ca9
Update report-a-problem.md
j-martens Feb 7, 2022
085c79a
Merge pull request #9504 from MicrosoftDocs/j-martens-patch-73
PRMerger13 Feb 7, 2022
0219fa0
Publish what's new in docs for VS for Jan 2022 (#9480)
anandmeg Feb 7, 2022
8445d6a
Update connected-services.md
j-martens Feb 7, 2022
e0efa0a
Update WPF C# tutorial to fix the broken work flow
anandmeg Feb 7, 2022
0ed94eb
Update docker-multi-container.md
j-martens Feb 7, 2022
10ee1aa
Merge pull request #9506 from MicrosoftDocs/j-martens-patch-74
PRMerger7 Feb 7, 2022
7f20d4a
Update screenshots for MainWindow form
anandmeg Feb 7, 2022
6e5bf7a
Add screenshots
anandmeg Feb 7, 2022
0473d5c
Update azure-functions-lab.md
j-martens Feb 7, 2022
fab99f9
simplify
j-martens Feb 7, 2022
8848449
Merge pull request #9508 from MicrosoftDocs/j-martens-patch-75
PRMerger16 Feb 7, 2022
6c65083
Update docker-multi-container.md
j-martens Feb 7, 2022
05463e5
Fix path to screenshots
anandmeg Feb 7, 2022
80b75ac
Fix path to screenshots
anandmeg Feb 7, 2022
d35e784
Merge pull request #9505 from MicrosoftDocs/j-martens-patch-74-1
PRMerger-2 Feb 7, 2022
bc0b75a
Update build-actions.md
j-martens Feb 7, 2022
3151ae2
Update managing-app-resources.md
j-martens Feb 7, 2022
3512368
Merge pull request #9511 from MicrosoftDocs/j-martens-patch-78
PRMerger3 Feb 7, 2022
3170733
update screenshots
anandmeg Feb 7, 2022
0acae66
Merge pull request #9512 from MicrosoftDocs/j-martens-patch-79
PRMerger3 Feb 7, 2022
28b0b51
Merge branch 'main' of https://github.com/MicrosoftDocs/visualstudio-…
j-martens Feb 7, 2022
70c810d
Merge pull request #9510 from MicrosoftDocs/j-martens-patch-76
LJSpiller Feb 7, 2022
eb71134
Update uninstall.md
j-martens Feb 7, 2022
a83a436
Merge pull request #9507 from anandmeg/wpf-tutorial-gitissue-7598
LJSpiller Feb 7, 2022
aaa2f51
Merge pull request #9514 from MicrosoftDocs/j-martens-patch-80
PRMerger7 Feb 7, 2022
cfa5125
Merge pull request #9513 from MicrosoftDocs/repo_sync_working_branch
huypub Feb 7, 2022
7829924
Merge pull request #9401 from WardenGnaw/dev/waan/AzureAttachAtP
LJSpiller Feb 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -58084,6 +58084,11 @@
"redirect_url": "/visualstudio/install/uninstall-visual-studio",
"redirect_document_id": false
},
{
"source_path": "docs/version-control/git-visual-studio-source-control.md",
"redirect_url": "/visualstudio/version-control/git-with-visual-studio",
"redirect_document_id": false
},
{
"source_path": "docs/ide/quickstart-fsharp.md",
"redirect_url": "/visualstudio/get-started/tutorial-fsharp-web-app",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: mikejo5000
manager: jmartens
ms.topic: how-to
ms.workload: azure-vs
ms.date: 11/11/2016
ms.date: 1/24/2022
ms.author: mikejo
ms.technology: vs-ide-debug
---
Expand Down Expand Up @@ -91,6 +91,40 @@ From Azure SDK 2.3, remote debugging has the following limitations:
The reserved port range 'range' for endpoint Microsoft.WindowsAzure.Plugins.RemoteDebugger.Connector of role 'role' overlaps with an already defined port or range.
* Allocation failed. Please retry later, try reducing the VM size or number of role instances, or try deploying to a different region.

::: moniker range=">=vs-2022"

## Debugging Azure App Services

You can debug programs that run in Azure App Services by using the Attach to Process dialog in Visual Studio.

> [!NOTE]
> This is only available for Windows Azure App Services starting in Visual Studio 2022 17.1.

### To debug a Windows Azure App Service

1. Under **Debug**, select **Attach to Process**.

2. Change **Connection type** to **Microsoft Azure App Services**, then select **Find..**.

3. In the dialog box that opens, select the **Subscription name**.

![Select Azure App Service Dialog](./media/vs-azure-tools-debug-cloud-services-virtual-machines/select-app-service.png)

> [!NOTE]
> You need to be logged into a Microsoft Account with access to the subscription that contains your Azure App Service.

4. Filter the view by either Resource Group or Resource Type, or search by name.

5. Next, select the App Service you want to debug then select **Ok**.

This enables remote debugging on your App Service and shows you a list of available processes to attach to.

![Process Listing](./media/vs-azure-tools-debug-cloud-services-virtual-machines/attach-to-process.png)

6. Select the process you want to attach to and then choose **Attach** to start debugging.

::: moniker-end

## Debugging Azure virtual machines

You can debug programs that run on Azure virtual machines by using Server Explorer in Visual Studio. When you enable remote debugging on an Azure virtual machine, Azure installs the remote debugging extension on the virtual machine. Then, you can attach to processes on the virtual machine and debug as you normally would.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions docs/get-started/csharp/tutorial-wpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,15 @@ After you create the project, you can customize it. To do so, choose **Propertie

::: moniker-end

### Change the name of MainWindow.xaml

Let's give MainWindow a more specific name. In **Solution Explorer**, right-click on *MainWindow.xaml* and choose **Rename**. Rename the file to *Greetings.xaml*.

## Design the user interface (UI)

If the designer is not open, select *Greetings.xaml* and press **Shift**+**F7** to open the designer.
If the designer is not open, select *MainWindow.xaml* and press **Shift**+**F7** to open the designer.

We'll add three types of controls to this application: a <xref:System.Windows.Controls.TextBlock> control, two <xref:System.Windows.Controls.RadioButton> controls, and a <xref:System.Windows.Controls.Button> control.

### Add a TextBlock control

::: moniker range="vs-2019"
::: moniker range="<=vs-2019"

1. Press **Ctrl**+**Q** to activate the search box and type **Toolbox**. Choose **View > Toolbox** from the results list.

Expand All @@ -156,7 +152,7 @@ We'll add three types of controls to this application: a <xref:System.Windows.Co

Your window should resemble the following illustration:

![TextBlock control on the Greetings form](../media/exploreide-greetingswithtextblockonly.png "Screenshot of the TextBlock control on the design surface of the Greetings form.")
![TextBlock control on the MainWindow form](media/explore-ide-window-with-textblock-only.png "Screenshot of the TextBlock control on the design surface of the MainWindow form.")

The XAML markup should look something like the following example:

Expand Down Expand Up @@ -210,7 +206,7 @@ Next, you'll add two [RadioButton](/dotnet/framework/wpf/controls/radiobutton) c

### Add radio buttons

::: moniker range="vs-2019"
::: moniker range="<=vs-2019"

1. In the **Toolbox**, find the **RadioButton** control.

Expand All @@ -220,7 +216,7 @@ Next, you'll add two [RadioButton](/dotnet/framework/wpf/controls/radiobutton) c

Your window should look like this:

![Greetings form with TextBlock and two radio buttons](../media/exploreide-greetingswithradiobuttons.png "Screenshot of the Design window for Greetings.xaml, showing a TextBlock control and two RadioButton controls positioned on the design surface.")
![MainWindow form with TextBlock and two radio buttons](media/explore-ide-window-with-radio-buttons.png "Screenshot of the Design window for MainWindow.xaml, showing a TextBlock control and two RadioButton controls positioned on the design surface.")

1. In the **Properties** window for the left RadioButton control, change the **Name** property (the property at the top of the **Properties** window) to `HelloButton`.

Expand Down Expand Up @@ -288,15 +284,15 @@ The final UI element that you'll add is a [Button](/dotnet/framework/wpf/control

### Add the button control

::: moniker range="vs-2019"
::: moniker range="<=vs-2019"

1. In the **Toolbox**, find the **Button** control, and then add it to the design surface under the RadioButton controls by dragging it to the form in the design view. If you're using Visual Studio 2019 or later, a red line helps you center the control.

1. In the XAML view, change the value of **Content** for the Button control from `Content="Button"` to `Content="Display"`, and then save the changes.

Your window should resemble the following illustration.

![Greetings form with control labels](media/exploreide-greetingswithcontrollabels-cs.png "Screenshot of the Design window for Greetings.xaml showing a TextBlock control, two RadioButton controls labeled 'Hello' and 'Goodbye', and a button labeled 'Display'.")
![MainWindow form with control labels](media/explore-ide-window-with-control-labels-cs.png "Screenshot of the Design window for MainWindow.xaml showing a TextBlock control, two RadioButton controls labeled 'Hello' and 'Goodbye', and a button labeled 'Display'.")

The XAML markup should now look similar to the following example:

Expand Down Expand Up @@ -336,7 +332,7 @@ The final UI element that you'll add is a [Button](/dotnet/framework/wpf/control

### Add code to the display button

::: moniker range="vs-2019"
::: moniker range="<=vs-2019"

When this application runs, a message box appears after a user chooses a radio button and then chooses the **Display** button. One message box will appear for Hello, and another will appear for Goodbye. To create this behavior, you'll add code to the `Button_Click` event in *Greetings.xaml.cs*.

Expand Down Expand Up @@ -404,13 +400,16 @@ When this application runs, a message box appears after a user chooses a radio b

Next, you'll debug the application to look for errors and test that both message boxes appear correctly. The following instructions tell you how to build and launch the debugger, but later you might read [Build a WPF application (WPF)](/dotnet/framework/wpf/app-development/building-a-wpf-application-wpf) and [Debug WPF](../../debugger/debugging-wpf.md) for more information.

### Change the name of MainWindow.xaml
Let's give MainWindow a more specific name. In **Solution Explorer**, right-click on *MainWindow.xaml* and choose **Rename**. Rename the file to *Greetings.xaml*.

### Find and fix errors

In this step, you'll find the error that we caused earlier by changing the name of the *MainWindow.xaml* file.

#### Start debugging and find the error

::: moniker range="vs-2019"
::: moniker range="<=vs-2019"

1. Start the debugger by pressing **F5** or selecting **Debug**, then **Start Debugging**.

Expand All @@ -420,7 +419,7 @@ In this step, you'll find the error that we caused earlier by changing the name

1. Stop the debugger by choosing **Debug** > **Stop Debugging**.

We renamed *MainWindow.xaml* to *Greetings.xaml* at the start of this tutorial, but the code still refers to *MainWindow.xaml* as the startup URI for the application, so the project can't start.
We renamed *MainWindow.xaml* to *Greetings.xaml*, but the code still refers to *MainWindow.xaml* as the startup URI for the application, so the project can't start.

::: moniker-end

Expand All @@ -437,6 +436,7 @@ We renamed *MainWindow.xaml* to *Greetings.xaml* at the start of this tutorial,
We renamed *MainWindow.xaml* to *Greetings.xaml* at the start of this tutorial, but the code still refers to *MainWindow.xaml* as the startup URI for the application, so the project can't start.

::: moniker-end

#### Specify Greetings.xaml as the startup URI

1. In **Solution Explorer**, open the *App.xaml* file.
Expand Down
Loading