This document describes how to create a custom project template in VS2012.
1. Prepare the project used for the project template.
A project template is a template used to automatically generate a certain type of files or projects. Therefore, a project used as a project template must be standardized and only contain most of the shared files and content. So when you want to export a project as a project template, you need to sort out some project files and content so that they can be standardized as much as possible.
2. Export a project as a project template.
On the menu bar of VS2012-> file-> export template, the following dialog box is displayed:
SampleProjectTemplate.zip Sample Project Template A project template created for this example. VSTemplate 1.0
Then, package the zip file and. vscontent file into a zip file. Finally, change the suffix of the zip file to. vsi. The template is packaged.
See http://msdn.microsoft.com/zh-cn/library/ms185314 (v = vs.80). aspx
Note:
1. Location of the Project template
1)<VisualStudioInstallDir>\ Common7 \ IDE \ ProjectTemplates \Language\Locale \
2) Open the tool-> Option and view the path on the project and solution page, as shown in:
/
This batch will automatically register the DLL to GAC and start the. vsi installer.