升级定义架构
适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
在网站升级定义文件中实现下面的元素和属性。
示例
下面的示例概述升级定义的格式。
<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>