- VS2013 (VS2010 and other versions also apply, both need to install the visual Studio SDK)
How to create a custom template
- 1
Create a C # project template item.
- 2
The project template contains 4 main files:
Code files (which can be deleted), and projects created from templates directly contain these files.
The icon for the custom project template (can be deleted).
A project file that creates a project from a template by customizing the template's project file.
Template file VSTemplate, it is important that the project is built through this file when the project is created through the template.
The build action for the template file (Build action) is VSTemplate, the other is none, and the other files are contained within the compressed package.
Note: Deleted files after deletion need to modify the corresponding project files and template files, the modification action is introduced in the follow-up experience.
END
How do I create a vs extension (VSIX) from a project?
Creating extensions through files in the previous experience "vs. custom project templates: [2] Creating a VSIX project template extension" has been explained in this article to create an extension from a project in the solution.
After you add a template project, build the extension, and then install it, and the project template appears under the Visual C # root directory.
Template Project Initial state
VS Custom Project Template: [3] Create a custom template