本部分包含有关 .vstemplate 文件中的 XML 元素的信息,这些文件存储项目模板、项模板和初学者工具包的元数据。
可以使用 vstemplate.xsd 验证自定义 .vstemplate 文件。 此文件在 ..\<Visual Studio 安装文件夹>\Xml\Schemas\1033\vstemplate.xsd。
| 元素 | 子元素 | 属性 |
|---|---|---|
| AppliesTo | 无 | 无 |
| 程序集(模板) | -- | -- |
| 程序集(向导扩展) | -- | -- |
| BuildProjectOnload | -- | -- |
| CreateInPlace | -- | -- |
| CreateNewFolder | -- | -- |
| CustomDataSignature | -- | -- |
| CustomParameter | -- | 名称 值 |
| CustomParameters | CustomParameter | -- |
| DefaultName | -- | -- |
| 描述 | -- | 程序包 ID |
| EnableEditOfLocationField | -- | -- |
| EnableLocationBrowseButton | -- | -- |
| 文件夹 | ProjectItem 文件夹 |
名称 |
| [已弃用] | -- | |
| FullClassName | -- | -- |
| Hidden | -- | -- |
| 图标 | -- | 程序包 ID |
| LocationField | -- | -- |
| LocationFieldMRUPrefix | -- | -- |
| MaxFrameworkVersion | -- | -- |
| Name | -- | 程序包 ID |
| NumberOfParentCategoriesToRollUp | -- | -- |
| PreviewImage | -- | -- |
| 项目 | Folder ProjectItem |
文件 TargetFileName ReplaceParameters |
| ProjectCollection | ProjectTemplateLink SolutionFolder |
-- |
| ProjectItem (项模板) | -- | 子类型 CustomTool ItemType ReplaceParameters TargetFileName |
| ProjectItem (项目模板) | -- | TargetFileName ReplaceParameters OpenInEditor OpenOrder OpenInWebBrowser OpenInHelpBrowser |
| ProjectSubType | -- | -- |
| ProjectTemplateLink | -- | ProjectName |
| ProjectType | -- | -- |
| PromptForSaveOnCreation | -- | -- |
| ProvideDefaultName | -- | -- |
| 引用 | Assembly | -- |
| 参考 | 参考 | -- |
| RequiredFrameworkVersion | -- | -- |
| RequiredPlatformVersion | -- | 版本 |
| SDKReference | -- | 包 |
| ShowByDefault | -- | -- |
| SolutionFolder | ProjectTemplateLink SolutionFolder |
名称 |
| SortOrder | -- | -- |
| SupportsCodeSeparation | -- | -- |
| SupportsLanguageDropDown | -- | -- |
| SupportsMasterPage | -- | -- |
| TargetPlatformName | RequiredPlatformVersion | -- |
| TemplateContent | ProjectCollection Project 参考 ProjectItem CustomParameters |
BuildOnLoad |
| TemplateData | 名称 描述 图标 PreviewImage ProjectType ProjectSubType TemplateID TemplateGroupID SortOrder CreateNewFolder DefaultName ProvideDefaultName PromptForSaveOnCreation EnableLocationBrowseButton EnableEditOfLocationField 已隐藏 DisplayInParentCategories LocationFieldMRUPrefix NumberOfParentCategoriesToRollUp CreateInPlace BuildOnLoad BuildProjectOnload ShowByDefault LocationField SupportsMasterPage SupportsCodeSeparation SupportsLanguageDropDown RequiredFrameworkVersion FrameworkVersion MaxFrameworkVersion CustomDataSignature TargetPlatformName |
-- |
| TemplateGroupID | -- | -- |
| TemplateID | -- | -- |
| VSTemplate | TemplateData TemplateContent WizardExtension WizardData |
类型 版本 |
| WizardData | -- | 名称 |
| WizardExtension | Assembly FullClassName |
-- |