Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
The following elements and attributes are implemented within a site upgrade definition file.
Example
The following example outlines the format of an upgrade definition.
<Config xmlns = "urn:Microsoft.SharePoint.Upgrade">
<WebTemplate
ID = "1"
LocaleId = "*"
FromProductVersion = "2"
BeginFromSchemaVersion = "100"
EndFromSchemaVersion = "149"
ToSchemaVersion = "150">
<Lists>
<List
FromTemplateId = "104"
ToFeatureId = "00BFEA71-D1CE-42de-9C63-A44004CE0104"
v3Type = "0x0104">
</List>
<List
FromTemplateId = "105"
ToFeatureId = "00BFEA71-7E6D-4186-9BA8-C047AC750105"
v3Type = "0x0105">
</List>
...
</Lists>
<Files>
<File
FromPath = "{LocaleId}\STS\default.aspx"
ToPath = "SiteTemplates\STS\default.aspx" />
<File
FromPath = "{LocaleId}\STS\Lists\announce\AllItems.aspx"
ToPath = "Features\AnnouncementsList\announce\AllItems.aspx" />
<File
FromPath = "{LocaleId}\STS\Lists\announce\DispForm.aspx"
ToPath = "Features\AnnouncementsList\announce\DispForm.aspx" />
<File
FromPath = "{LocaleId}\STS\Lists\announce\EditForm.aspx"
ToPath = "Features\AnnouncementsList\announce\EditForm.aspx"
/>
<File
FromPath = "{LocaleId}\STS\Lists\announce\NewForm.aspx"
ToPath = "Features\AnnouncementsList\announce\NewForm.aspx" />
...
</Files>
<AppliedSiteFeatures>
<Feature ID = "00BFEA71-1C5E-4A24-B310-BA51C3EB7A57" />
</AppliedSiteFeatures>
<AppliedWebFeatures>
<Feature ID = "00BFEA71-D1CE-42de-9C63-A44004CE0104" />
<Feature ID = "00BFEA71-7E6D-4186-9BA8-C047AC750105" />
<Feature ID = "00BFEA71-DE22-43B2-A848-C05709900100" />
...
</AppliedWebFeatures>
</WebTemplate>
</Config>