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/debugger/remote-debugging-azure-app-service.md
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ This article describes how to attach the Visual Studio debugger to an ASP.NET Co
25
25
26
26
## Enable remote debugging
27
27
28
-
Before you can debug this issue with Visual Studio, you must enable the remote debugging feature on the App Service. This setting will allow the Visual Studio debugger to connect to the main App Service web hosting process.
28
+
Before you can debug this issue with Visual Studio, you must enable the remote debugging feature on the App Service. This setting allows the Visual Studio debugger to connect to the main App Service web hosting process.
29
29
30
30
1. Sign into your own [Azure portal](https://portal.azure.com/).
31
31
@@ -45,16 +45,14 @@ Your app service instance now supports remote debugging through Visual Studio.
45
45
46
46
## Configure debugging settings
47
47
48
-
Make sure you have completed the following steps in Visual Studio before debugging an app in Azure to ensure success.
49
-
50
-
1. First, make sure you have successfully built your project at least one time. A successful build ensures the source code and any necessary compiled files are ready to go. If your application is running locally, make sure to stop the app.
48
+
1. Build your app without errors. Stop your app if it's running locally.
51
49
52
50
> [!NOTE]
53
51
> Make sure the state of your local code matches what was deployed to Azure. This ensures that the local symbol files and source code line up with the deployed app.
54
52
55
53
1. Select **Debug > Options** from the top Visual Studio menu. Ensure that **Enable Just My code** is *unchecked* (as shown below), and then select **OK**.
56
54
57
-
Changing this setting allows Visual Studio to debug the optimized code that was deployed to Azure using the necessary symbol files from your local bin folder. Symbol files are used by the debugger as a bridge between compiled, executing code and the source code in Visual Studio, which is why it's important that your local source code matched the deploy app.
55
+
Changing this setting allows Visual Studio to debug the optimized code that was deployed to Azure using the necessary symbol files from your local bin folder. Symbol files are used by the debugger as a bridge between compiled, executing code and the source code in Visual Studio. Matching symbol files are required for remote debugging.
58
56
59
57
:::image type="content" source="../debugger/media/vs-2022/visual-studio-remote-debug-settings.png" alt-text="A screenshot of the Visual Studio debugging settings.":::
60
58
@@ -70,14 +68,17 @@ Make sure you have completed the following steps in Visual Studio before debuggi
70
68
71
69
1. Locate and select the App Service instance you created in the previous step, and then choose **OK**.
72
70
73
-
1. The `w3wp.exe` process should appear in the list of available processes to connect to, which is the main process of the Azure App Service that hosts the deployed application. Select that process and then choose **Attach** in the bottom right to connect the Visual Studio debugger.
71
+
1. The `w3wp.exe` process should appear in the list of available processes to connect to. `w3wp.exe` is the main process of the Azure App Service that hosts the deployed application. Select the `w3wp.exe`process and then choose **Attach** in the bottom right.
74
72
75
73
:::image type="content" source="../debugger/media/vs-2022/visual-studio-remote-debug-attach-to-process.png" alt-text="A screenshot of the attach to process features." lightbox="../debugger/media/vs-2022/visual-studio-remote-debug-attach-to-process.png":::
76
74
77
-
1. In a C# application file such as `Index.cshtml.cs`, set a breakpoint by clicking in the left margin. (Or, right-click and choose **Breakpoint** > **Insert breakpoint**.)
75
+
1. In a C# application file such as `Index.cshtml.cs`, set a breakpoint by clicking in the left margin. Alternatively, right-click and choose **Breakpoint** > **Insert breakpoint**.
78
76
79
-
1.Take action in the web appto hit the breakpoint. If you're attached to the process but can't hit the breakpoint, make sure your publish profile in Visual Studio is set to a Debug configuration instead of a Release configuration.
77
+
1.In the web app, navigate to the endpoint with the breakpoint. If you're attached to the process but can't hit the breakpoint, make sure your publish profile in Visual Studio is set to a Debug configuration instead of a Release configuration.
80
78
81
-
1.(Optional) you can also verify that Visual Studio has loaded the symbol files for your debugging session. Navigate to **Debug > Windows > Modules** to open the modules window. This window should indicate that the symbol files were successfully loaded after the **Just my code** configuration changes you made earlier.
79
+
1. Optional: To verify that Visual Studio has loaded the symbol files for your debugging session. Navigate to **Debug > Windows > Modules** to open the modules window. This window indicates that the symbol files were successfully loaded after the **Just my code** configuration changes you made earlier.
82
80
83
81
:::image type="content" source="../debugger/media/vs-2022/visual-studio-symbol-files.png" alt-text="A screenshot of the symbol files window.":::
82
+
83
+
> [!NOTE]
84
+
> For subsequent debugging of the app service, select the select **Debug** > **Reattach to w3wp.exe** or use the Shift+Alt+P hot keys.
- Sign *contoso.vsix* with a certificate stored in a secure USB drive specifying file digest algorithm (-fd), timestamp server (-t), and a custom output path (-o) for the signed VSIX.
Copy file name to clipboardExpand all lines: docs/ide/how-to-locate-and-organize-project-and-item-templates.md
+18-22Lines changed: 18 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: Locate and organize project templates
3
-
description: Locate and organize project templates, including installed templates and user templates (.vstemplate files), in Visual Studio.
4
-
ms.date: 11/15/2022
5
-
ms.topic: how-to
3
+
description: Locate and organize project and item templates in Visual Studio, including installed templates and user templates (.vstemplate files).
4
+
ms.date: 08/21/2024
5
+
ms.topic: concept-article
6
6
helpviewer_keywords:
7
7
- project templates [Visual Studio], locations
8
8
- item templates [Visual Studio], locations
@@ -11,18 +11,21 @@ author: ghogen
11
11
ms.author: ghogen
12
12
manager: mijacobs
13
13
ms.subservice: general-ide
14
+
15
+
#customer intent: As a developer, I want to locate and organize project and item templates in Visual Studio, so I can easily access them to create code for new projects and items.
14
16
---
17
+
15
18
# Locate and organize project and item templates
16
19
17
-
Template files must be placed in a known location in order for them to be shown in the new project and new item dialog boxes..
20
+
When template files are placed in a known location, Visual Studio can locate the files and make them available for creating new projects and new items. Templates provide a convenient way to create applications, access class libraries, implement unit tests, and set up configuration files.
18
21
19
-
## Locate templates
22
+
Installed templates and user templates (*.vstemplate* files) are stored in different locations. You can also customize the locations with Visual Studio options.
20
23
21
-
Installed templates and user templates are stored in two different locations.
24
+
This article describes the template file locations recognized by Visual Studio.
22
25
23
-
### Installed templates
26
+
##Location for installed templates
24
27
25
-
By default, templates installed with Visual Studio are located in:
28
+
By default, templates installed with Visual Studio are placed in the following locations:
26
29
27
30
::: moniker range="vs-2019"
28
31
@@ -35,7 +38,6 @@ For example, the following directory has the Visual Basic item templates for Eng
@@ -48,9 +50,9 @@ For example, the following directory has the Visual Basic item templates for Eng
48
50
49
51
::: moniker-end
50
52
51
-
### User templates
53
+
##Location for user templates
52
54
53
-
If you add a compressed (*.zip*) file that includes a *.vstemplate* file to the user template directory, the template appears in the new project and new item dialog boxes. By default, user templates are located in:
55
+
When you add a compressed (*.zip*) file that includes a *.vstemplate* file to the user template directory, Visual Studio makes the template available in the **New project** and **New item** dialogs. By default, user templates are placed in the following locations:
54
56
55
57
::: moniker range="vs-2019"
56
58
@@ -76,18 +78,12 @@ For example, the following directory has user project templates for C#:
76
78
77
79
::: moniker-end
78
80
79
-
> [!TIP]
80
-
> You can change the known location for user templates in **Tools** > **Options** > **Projects and Solutions** > **Locations**.
81
-
82
-
## Next steps
83
-
84
-
To learn more about .NET SDK templates and their locations, reference the following articles.
81
+
### Change location for user templates
85
82
86
-
|Article |Description |
87
-
|---------|---------|
88
-
|[.NET default templates](/dotnet/core/tools/dotnet-new-sdk-templates)| When you install the .NET SDK, you receive over a dozen built-in templates for creating projects and files, including console apps, class libraries, unit test projects, ASP.NET Core apps (including Angular and React projects), and configuration files. This article lists the templates that come pre-installed with the .NET SDK and describes how to interact with them. |
89
-
|[Manage .NET project and item templates](/dotnet/core/install/templates?pivots=os-windows&preserve-view=true)| .NET provides a template system that enables users to install or uninstall packages containing templates from NuGet, a NuGet package file, or a file system directory. This article describes how to manage .NET templates through the .NET SDK CLI. |
83
+
You can change the location for user templates in Visual Studio with the **Tools** > **Options** dialog. The location settings are on the **Projects and Solutions** > **Locations** page.
90
84
91
85
## Related content
92
86
93
-
-[Visual Studio template schema reference (extensibility)](../extensibility/visual-studio-template-schema-reference.md)
87
+
- Review the [Visual Studio template schema reference (extensibility)](../extensibility/visual-studio-template-schema-reference.md)
88
+
- Use [prebuilt templates installed with the .NET SDK](/dotnet/core/tools/dotnet-new-sdk-templates)
89
+
-[Manage .NET project and item templates with the .NET SDK CLI](/dotnet/core/install/templates?pivots=os-windows&preserve-view=true)
0 commit comments