So for those of you that were at the Australian SharePoint Conference a fortnight ago, hopefully you came and saw me present on the brand new v1 functionality in the SharePoint 2010 platform around Feature Versioning. No more deactivate, retract, remove, add, deploy and activate people! We have a new approach…albeit with some limitations and gotchas. Rather than me write a huge blog post a webcast paints a thousand words ;-)
I jump into code like this:
<UpgradeActions>
<VersionRange BeginVersion="0.0.0.0" EndVersion="1.0.0.0">
<ApplyElementManifests>
<ElementManifest Location="Newfield\Elements.xml" />
</ApplyElementManifests>
<AddContentTypeField
ContentTypeId="0x01008fe82614693d490c97402f2135091f27"
FieldId="{B66DB48F-EA17-4287-B1DE-1409DB073C5B}"
PushDown="true" />
</VersionRange>
<VersionRange BeginVersion="1.0.0.0" EndVersion="2.0.0.0">
<CustomUpgradeAction Name="Upgrade1.0.0.0To2.0.0.0" />
</VersionRange>
<VersionRange BeginVersion="2.0.0.0" EndVersion="3.0.0.0">
<ApplyElementManifests>
<ElementManifest Location="StyleSheet\Elements.xml" />
</ApplyElementManifests>
</VersionRange>
<VersionRange BeginVersion="3.0.0.0" EndVersion="4.0.0.0">
<MapFile FromPath="StyleSheet\Sample.txt" ToPath="SPDevWiki\Sample.txt" />
</VersionRange>
</UpgradeActions> |
Check it out over on the SharePointDevWiki.com Podcast space. Also plenty of links there to my slide deck and other great people in this space like Chris O’Brien and Mike Morton who are SharePoint Heroes of mine!
I would also recommend taking a look at my white paper on Application Life Cycle Management in SharePoint if this subject interests you too.