VS Custom Project Template: [3] Create a custom template

Source: Internet
Author: User

    • VS2013 (VS2010 and other versions also apply, both need to install the visual Studio SDK)
How to create a custom template
    1. 1

      Create a C # project template item.

    2. 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?
    1. 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.

    2. After you add a template project, build the extension, and then install it, and the project template appears under the Visual C # root directory.

    3. Template Project Initial state

VS Custom Project Template: [3] Create a custom template

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.