Skip to content

Commit c100fa6

Browse files
committed
updated menu instructions and other refreshes
1 parent 37168f5 commit c100fa6

File tree

1 file changed

+35
-23
lines changed

1 file changed

+35
-23
lines changed
Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "How to: Update Existing Templates | Microsoft Docs"
2+
title: "How to: update existing templates | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "10/19/2017"
55
ms.reviewer: ""
66
ms.suite: ""
77
ms.technology:
@@ -18,50 +18,62 @@ author: "gewarren"
1818
ms.author: "gewarren"
1919
manager: "ghogen"
2020
---
21-
# How to: Update Existing Templates
21+
# How to: update existing templates
2222
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.
2323

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.
2626

2727
#### To use Export Template to update an existing template
2828

29-
1. On the **File** menu, click **New** and then click **New Project**.
29+
1. Open the **New Project** dialog box by choosing **File**, **New**, **Project**.
3030

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**.
3232

33-
3. Modify the project in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)].
33+
3. Modify the project in Visual Studio.
3434

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.
3642

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.
4145

4246
#### To manually update an existing template
4347

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\.
4549

4650
2. Extract the .zip file.
4751

4852
3. Modify or delete the current template files, or add new files to the template.
4953

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).
5157

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.
5361

5462
6. Put the new .zip file in the same directory as the old .zip file.
5563

5664
7. Delete the extracted template files and the old template .zip file.
5765

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**.
5971

6072
9. Run the following command: `devenv /installvstemplates`.
6173

62-
## See Also
63-
[Customizing Templates](../ide/customizing-project-and-item-templates.md)
64-
[Creating Project and Item Templates](../ide/creating-project-and-item-templates.md)
65-
[Visual Studio Template Schema Reference](../extensibility/visual-studio-template-schema-reference.md)
66-
[Template Parameters](../ide/template-parameters.md)
67-
[How to: Create Starter Kits](../ide/how-to-create-starter-kits.md)
74+
## See also
75+
[Customizing Templates](../ide/customizing-project-and-item-templates.md)
76+
[Creating Project and Item Templates](../ide/creating-project-and-item-templates.md)
77+
[Visual Studio Template Schema Reference](../extensibil0ity/visual-studio-template-schema-reference.md)
78+
[Template Parameters](../ide/template-parameters.md)
79+
[How to: Create Starter Kits](../ide/how-to-create-starter-kits.md)

0 commit comments

Comments
 (0)