本節包含 .vstemplate 檔案中 XML 元素的相關信息,這些檔案是儲存專案範本、專案範本和入門套件元數據的檔案。
您可以使用 vstemplate.xsd 來驗證自定義 .vstemplate 檔案。 此檔案可在 .. 取得。\<Visual Studio 安裝資料夾>\Xml\Schemas\1033\vstemplate.xsd。
| 元素 | 子元素 | 屬性 |
|---|---|---|
| AppliesTo | 無 | 無 |
| 元件(範本) | -- | -- |
| 元件 (精靈延伸模組) | -- | -- |
| BuildProjectOnload | -- | -- |
| CreateInPlace | -- | -- |
| CreateNewFolder | -- | -- |
| CustomDataSignature | -- | -- |
| CustomParameter | -- | 名稱 值 |
| CustomParameters | CustomParameter | -- |
| DefaultName | -- | -- |
| 說明 | -- | Package 識別碼 |
| EnableEditOfLocationField | -- | -- |
| EnableLocationBrowseButton | -- | -- |
| 資料夾 | ProjectItem Folder |
名稱 |
| [已被取代] | -- | |
| FullClassName | -- | -- |
| Hidden | -- | -- |
| 圖示 | -- | 套件 識別碼 |
| LocationField | -- | -- |
| LocationFieldMRUPrefix | -- | -- |
| MaxFrameworkVersion | -- | -- |
| 名稱 | -- | 套件 識別碼 |
| 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 | -- | -- |
| 參考 | 組件 | -- |
| 參考 | 參考 | -- |
| RequiredFrameworkVersion | -- | -- |
| RequiredPlatformVersion | -- | 版本 |
| SDKReference | -- | 套件 |
| ShowByDefault | -- | -- |
| SolutionFolder | ProjectTemplateLink SolutionFolder |
名稱 |
| SortOrder | -- | -- |
| SupportsCodeSeparation | -- | -- |
| SupportsLanguageDropDown | -- | -- |
| SupportsMasterPage | -- | -- |
| TargetPlatformName | RequiredPlatformVersion | -- |
| TemplateContent | ProjectCollection Project 參考資料 ProjectItem CustomParameters |
BuildOnLoad |
| TemplateData | 名稱 描述 Icon PreviewImage 專案類型 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 | 組件 FullClassName |
-- |