In the previous section, we have created the template and then put it in the appropriate templates directory to use it in Visual Studio.
In this article, we install the template in a way that installs the VSIX extension, which requires the installation of the visual Studio SDK
After installing the SDK, you can see the VSIX project in the new project
Select VSIX Project and set the name, click OK, and the project is new.
Project structure:
Now let's start
First, double hit Open source.extension.vsixmanifest
Set various properties of an extension
Then, add our previous two created templates
Click New
Add Item Template
Add a project template
After adding is complete
Now the new template can be seen in Solution Manager
Attention:
How do our templates fit into a group of our own definition,
Operation:
Create a new folder in ItemTemplate and ProjectTemplate take your own name and drag the template in.
Below, we set the installation target, that is, which versions of VS we can install in this VSIX
Figure 14 represents the version number 14 for Visual Studio corresponding to VS2015
I want to make VS2013 can also be used, this can be [12.0.14.0]
VS2013 above can be used: [12.0,)
Finally, we build the project, open the Debug directory, double-click Run VSIX Extension
We can install the template we made.
New Project Inside:
New Item:
Attention:
Templates installed this way require a restart of visual Studio before the template displays
To uninstall a template:
Click Uninstall, restart vs on the line
Visual Studio Project template Authoring (iii)