Visual Studio Project template Authoring (iii)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.