Поделиться через


Visual Studio Template Schema Reference

This section contains information about XML elements in .vstemplate files, which are files that store metadata for project templates, item templates, and Starter Kits.

You can use vstemplate.xsd to validate custom .vstemplate files. This file is available at ..\Visual Studio installation folder\Xml\Schemas\1033\vstemplate.xsd. For more information, see How to: Select the XML Schema(s) to Use for Validation.

Element

Child Elements

Attributes

Assembly (Template)

--

--

Assembly (Wizard Extension)

--

--

BuildOnLoad

--

--

CreateInPlace

--

--

CreateNewFolder

--

--

CustomDataSignature

--

--

CustomParameter

--

Name

Value

CustomParameters

CustomParameter

--

DefaultName

--

--

Description

--

Package

ID

EnableEditOfLocationField

--

--

EnableLocationBrowseButton

--

--

Folder

ProjectItem

Folder

Name

FrameworkVersion

[deprecated]

--

FullClassName

--

--

Hidden

--

--

Icon

--

Package

ID

LocationField

--

--

LocationFieldMRUPrefix

--

--

MaxFrameworkVersion

--

--

Name

--

Package

ID

NumberOfParentCategoriesToRollUp

--

--

PreviewImage

--

--

Project

Folder

ProjectItem

File

TargetFileName

ReplaceParameters

ProjectCollection

ProjectTemplateLink

SolutionFolder

--

ProjectItem (Item Templates)

--

SubType

CustomTool

ItemType

ReplaceParameters

TargetFileName

ProjectItem (Project Templates)

--

TargetFileName

ReplaceParameters

OpenInEditor

OpenOrder

OpenInWebBrowser

OpenInHelpBrowser

ProjectSubType

--

--

ProjectTemplateLink

--

ProjectName

ProjectType

--

--

PromptForSaveOnCreation

--

--

ProvideDefaultName

--

--

Reference

Assembly

--

References

Reference

--

RequiredFrameworkVersion

--

--

ShowByDefault

--

--

SolutionFolder

ProjectTemplateLink

SolutionFolder

Name

SortOrder

--

--

SupportsCodeSeparation

--

--

SupportsLanguageDropDown

--

--

SupportsMasterPage

--

--

TemplateContent

ProjectCollection

Project

References

ProjectItem

CustomParameters

--

TemplateData

Name

Description

Icon

PreviewImage

ProjectType

ProjectSubType

TemplateID

TemplateGroupID

SortOrder

CreateNewFolder

DefaultName

ProvideDefaultName

PromptForSaveOnCreation

EnableLocationBrowseButton

EnableEditOfLocationField

Hidden

DisplayInParentCategories

LocationFieldMRUPrefix

NumberOfParentCategoriesToRollUp

CreateInPlace

BuildOnLoad

ShowByDefault

LocationField

SupportsMasterPage

SupportsCodeSeparation

SupportsLanguageDropDown

RequiredFrameworkVersion

FrameworkVersion

MaxFrameworkVersion

CustomDataSignature

--

TemplateGroupID

--

--

TemplateID

--

--

VSTemplate

TemplateData

TemplateContent

WizardExtension

WizardData

Type

Version

WizardData

--

Name

WizardExtension

Assembly

FullClassName

--

See Also

Concepts

How to: Create Starter Kits

Other Resources

Visual Studio Templates

Creating Project and Item Templates