VS Custom Project Template: [5] child elements of template data

Source: Internet
Author: User

    • VS2013 (VS2010 and other versions also apply, both need to install the visual Studio SDK)
Required elements
    1. 1

      Name, Description, Icon, ProjectType

      Name: template names;

      Description: Template description;

      Icon: template icons;

      ProjectType: Template project type.

      Note: Modifying the template icon file requires modifying the value of the icon element in the template data.

      END
Optional elements
  1. 1

    How to use ProjectSubType?

    PROJECTSUBTYPE Specifies that the template is categorized into a subcategory of the value specified in the ProjectType element.

  2. 2

    TemplateID and TemplateGroupID

    TemplateGroupID: Specifies the identifier for the category of the item template. Using the value of the TemplateGroupID element with the project system registration (hkey_local_machine\software\microsoft\visualstudio\11.0\projects\) can be filtered to appear in the Add New item Template in the dialog box.

    TemplateID: Specifies the identifier of an item template that is categorized by templategroupid elements into an item template group. If the. vstemplate file omits the TemplateID element, the Name element is used as the identifier for this template.

    PS: The author did not find the project system registration directory in VS2013, testing the function is not possible. Use grouping to refer to previous experience "vs Custom Project Template: [4] Grouping of custom templates"

  3. 3

    How do I set the template sort order? SortOrder

    The Sordorder value must be a multiple of 10.

    In the New Project dialog box, a template with a low sort order value appears before a template with a high sort order value.

    If this value is not set, the alphabetical order is sorted.

    When you change SortOrder to 20, the sort order is advanced, if the same sort exists, and then sorted alphabetically.

  4. 4

    Createnewfolder

    Whether to add an include folder for the project.

  5. 5

    How do I set the default name for a new project?

    ProvideDefaultName and DefaultName control.

    If the new project requires a default name and ProvideDefaultName is set to True, the project name will use the default name provided by DefaultName when you create a new project, or False if you do not need to provide a default name.

  6. 6

    How do I display a template at the same time in the parent and sub-class directories?

    NumberOfParentCategoriesToRollUp, specifies the number of parent categories that will display this template in the New Project dialog box.

    By default, the template is displayed in the subclass directory and no longer appears in the parent class directory.

  7. 7

    How do I specify the minimum version required for. NET?

    requiredframeworkversion element Settings.

  8. 8

    How do I enable/disable or hide the location text box in the New Project dialog box?

    Locationfield element settings, optional values: Enabled (default), Disabled, Hidden

    END
Less common elements

VS Custom Project Template: [5] child elements of template data

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.