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/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