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
title: "How to: Update Existing Templates | Microsoft Docs"
2
+
title: "How to: update existing templates | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
4
+
ms.date: "10/19/2017"
5
5
ms.reviewer: ""
6
6
ms.suite: ""
7
7
ms.technology:
@@ -18,50 +18,62 @@ author: "gewarren"
18
18
ms.author: "gewarren"
19
19
manager: "ghogen"
20
20
---
21
-
# How to: Update Existing Templates
21
+
# How to: update existing templates
22
22
After you create a template and compress the files into a .zip file, you may want to modify the template. You can do this by manually changing the files in the template, or by exporting a new template from a project that is based on the template.
23
23
24
-
## Using the Export Template Wizard to Update an Existing Template
25
-
[!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] provides an **Export Template** wizard that can be used to update an existing template.
24
+
## Using the Export Template Wizard to update an existing template
25
+
Visual Studio provides an **Export Template** wizard that can be used to update an existing template.
26
26
27
27
#### To use Export Template to update an existing template
28
28
29
-
1.On the **File**menu, click **New** and then click **NewProject**.
29
+
1.Open the **New Project**dialog box by choosing **File**, **New**, **Project**.
30
30
31
-
2. Select the template that you want to update, enter a name and location for your temporary project, and click**OK**.
31
+
2. Select the template that you want to update, enter a name and location for your project, and choose**OK**.
32
32
33
-
3. Modify the project in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)].
33
+
3. Modify the project in Visual Studio.
34
34
35
-
4. On the **File** menu, click **Export Template**, and use the **Export Template** wizard to create a new template.
35
+
4. On the **Project** menu, choose **Export Template**.
36
+
37
+
The **Export Template Wizard** opens.
38
+
39
+
5. Follow the prompts in the wizard to export the template as a .zip file.
40
+
41
+
6. Delete the old template .zip file.
36
42
37
-
5. After the updated template is compressed into a .zip file, delete the old template .zip file.
38
-
39
-
## Manually Updating an Existing Template
40
-
You can update an existing template outside [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] by modifying the files in the compressed .zip file.
43
+
## Manually updating an existing template
44
+
You can update an existing template outside Visual Studio by modifying the files in the compressed .zip file.
41
45
42
46
#### To manually update an existing template
43
47
44
-
1. Locate the .zip file that contains the template. By default, this file is located in \My Documents\Visual Studio *Version*\My Exported Templates\\.
48
+
1. Locate the .zip file that contains the template. By default, this file is located in %USERPROFILE%\Documents\Visual Studio \<version\>\My Exported Templates\.
45
49
46
50
2. Extract the .zip file.
47
51
48
52
3. Modify or delete the current template files, or add new files to the template.
49
53
50
-
4. Open, modify, and save the .vstemplate XML file to handle updated behavior or new files. For more information about the .vstemplate schema, see [Visual Studio Template Schema Reference](../extensibility/visual-studio-template-schema-reference.md). For more information about what you can parameterize in the source files, see [Template Parameters](../ide/template-parameters.md)
54
+
4. Open, modify, and save the .vstemplate XML file to handle updated behavior or new files.
55
+
56
+
For more information about the .vstemplate schema, see [Visual Studio Template Schema Reference](../extensibility/visual-studio-template-schema-reference.md). For more information about what you can parameterize in the source files, see [Template Parameters](../ide/template-parameters.md).
51
57
52
-
5. Select the files in your template, right-click, click **Send To**, and then click **Compressed (zipped) Folder**. The files that you selected are compressed into a .zip file.
58
+
5. Select the files in your template, right-click, choose **Send To**, and then choose **Compressed (zipped) Folder**.
59
+
60
+
The files that you selected are compressed into a .zip file.
53
61
54
62
6. Put the new .zip file in the same directory as the old .zip file.
55
63
56
64
7. Delete the extracted template files and the old template .zip file.
57
65
58
-
8. Start (as administrator) an instance of the Developer Command Prompt (on the start menu, under **Visual Studio 2010 / Visual Studio Tools/Developer Command Prompt**).
66
+
8. Start an elevated instance of the Developer Command Prompt:
67
+
68
+
1. In the Start menu, navigate to **Visual Studio \<version\>**, **Developer Command Prompt**.
69
+
70
+
2. From the context (right-click) menu, choose **More**, **Run as administrator**.
59
71
60
72
9. Run the following command: `devenv /installvstemplates`.
0 commit comments