Référence du schéma de modèle Visual StudioVisual Studio Template Schema Reference

Cette section contient des informations sur les éléments XML dans des fichiers .vstemplate, qui stockent les métadonnées des modèles de projet, d'élément et des Starter Kits.This section contains information about XML elements in .vstemplate files, which are files that store metadata for project templates, item templates, and Starter Kits.

Vous pouvez utiliser vstemplate.xsd pour valider des fichiers .vstemplate personnalisés.You can use vstemplate.xsd to validate custom .vstemplate files. Ce fichier est disponible sous... \ Dossier d’installation de visual Studio\Xml\Schemas\1033\vstemplate.xsd.This file is available at ..\Visual Studio installation folder\Xml\Schemas\1033\vstemplate.xsd.

ÉlémentElement Éléments enfantsChild Elements AttributsAttributes
appliesToAppliesTo Aucun.None Aucun.None
Assembly (modèle)Assembly (Template) -- --
Assembly (Extension Assistant)Assembly (Wizard Extension) -- --
BuildProjectOnloadBuildProjectOnload -- --
CreateInPlaceCreateInPlace -- --
CreateNewFolderCreateNewFolder -- --
CustomDataSignatureCustomDataSignature -- --
CustomParameterCustomParameter -- NameName

ValueValue
CustomParametersCustomParameters CustomParameterCustomParameter --
DefaultNameDefaultName -- --
DescriptionDescription -- PackagePackage

IdID
EnableEditOfLocationFieldEnableEditOfLocationField -- --
EnableLocationBrowseButtonEnableLocationBrowseButton -- --
DossierFolder ProjectItemProjectItem

DossierFolder
NameName
[deprecated][deprecated] --
FullClassNameFullClassName -- --
MasquéHidden -- --
IcôneIcon -- PackagePackage

IdID
LocationFieldLocationField -- --
LocationFieldMRUPrefixLocationFieldMRUPrefix -- --
MaxFrameworkVersionMaxFrameworkVersion -- --
NomName -- PackagePackage

IdID
NumberOfParentCategoriesToRollUpNumberOfParentCategoriesToRollUp -- --
PreviewImagePreviewImage -- --
ProjetProject DossierFolder

ProjectItemProjectItem
FichierFile

TargetFileNameTargetFileName

ReplaceParametersReplaceParameters
ProjectCollectionProjectCollection ProjectTemplateLinkProjectTemplateLink

SolutionFolderSolutionFolder
--
ProjectItem (modèles d’élément)ProjectItem (Item Templates) -- SubTypeSubType

CustomToolCustomTool

ItemTypeItemType

ReplaceParametersReplaceParameters

TargetFileNameTargetFileName
ProjectItem (modèles de projet)ProjectItem (Project Templates) -- TargetFileNameTargetFileName

ReplaceParametersReplaceParameters

OpenInEditorOpenInEditor

OpenOrderOpenOrder

OpenInWebBrowserOpenInWebBrowser

OpenInHelpBrowserOpenInHelpBrowser
ProjectSubTypeProjectSubType -- --
ProjectTemplateLinkProjectTemplateLink -- Nom_projetProjectName
ProjectTypeProjectType -- --
PromptForSaveOnCreationPromptForSaveOnCreation -- --
ProvideDefaultName la valeurProvideDefaultName -- --
RéférenceReference AssemblyAssembly --
RéférencesReferences RéférenceReference --
RequiredFrameworkVersionRequiredFrameworkVersion -- --
RequiredPlatformVersionRequiredPlatformVersion -- VersionVersion
SDKReferenceSDKReference -- PackagePackage
ShowByDefaultShowByDefault -- --
SolutionFolderSolutionFolder ProjectTemplateLinkProjectTemplateLink

SolutionFolderSolutionFolder
NameName
Ordre de triSortOrder -- --
SupportsCodeSeparationSupportsCodeSeparation -- --
SupportsLanguageDropDownSupportsLanguageDropDown -- --
SupportsMasterPageSupportsMasterPage -- --
TargetPlatformNameTargetPlatformName RequiredPlatformVersionRequiredPlatformVersion --
TemplateContentTemplateContent ProjectCollectionProjectCollection

ProjetProject

RéférencesReferences

ProjectItemProjectItem

CustomParametersCustomParameters
BuildOnLoadBuildOnLoad
TemplateDataTemplateData NameName

DescriptionDescription

IcôneIcon

PreviewImagePreviewImage

ProjectTypeProjectType

ProjectSubTypeProjectSubType

TemplateIDTemplateID

TemplateGroupIDTemplateGroupID

SortOrderSortOrder

CreateNewFolderCreateNewFolder

DefaultNameDefaultName

ProvideDefaultNameProvideDefaultName

PromptForSaveOnCreationPromptForSaveOnCreation

EnableLocationBrowseButtonEnableLocationBrowseButton

EnableEditOfLocationFieldEnableEditOfLocationField

HiddenHidden

DisplayInParentCategoriesDisplayInParentCategories

LocationFieldMRUPrefixLocationFieldMRUPrefix

NumberOfParentCategoriesToRollUpNumberOfParentCategoriesToRollUp

CreateInPlaceCreateInPlace

BuildOnLoadBuildOnLoad

BuildProjectOnloadBuildProjectOnload

ShowByDefaultShowByDefault

LocationFieldLocationField

SupportsMasterPageSupportsMasterPage

SupportsCodeSeparationSupportsCodeSeparation

SupportsLanguageDropDownSupportsLanguageDropDown

RequiredFrameworkVersionRequiredFrameworkVersion

FrameworkVersionFrameworkVersion

MaxFrameworkVersionMaxFrameworkVersion

CustomDataSignatureCustomDataSignature

TargetPlatformNameTargetPlatformName
--
TemplateGroupIDTemplateGroupID -- --
TemplateIDTemplateID -- --
VSTemplateVSTemplate TemplateDataTemplateData

TemplateContentTemplateContent

WizardExtensionWizardExtension

WizardDataWizardData
TypeType

VersionVersion
WizardDataWizardData -- NameName
WizardExtensionWizardExtension AssemblyAssembly

FullClassNameFullClassName
--

Voir aussiSee also