320 likes | 547 Views
Feature Framework and Solution Deployment Improvements in SharePoint 2010. Name Title Company. Agenda. Feature Framework changes New elements and possibilities Solution deployment changes New possiblities and supported deployment methods. Enhancements for the Feature Framework.
E N D
Feature Framework and Solution Deployment Improvements in SharePoint 2010 Name Title Company
Agenda • Feature Framework changes • New elements and possibilities • Solution deployment changes • New possiblities and supported deployment methods
Enhancements for the Feature Framework Feature Framework
Feature Improvements • Feature Versioning & Upgrade (ALM) • Activation Dependency Options • New Events • Workflow Association • Property Bag • Web Templates • New custom action options
Feature Versioning & Upgrade • Version Range – BeginVersion/EndVersion • Upgrade Elements • CustomUpgradeAction • Parameters • ApplyElementManifest • MapFile – FromPath/ToPath • AddContentTypeField
Feature Activation Dependency • MinimumVersion • Will try to upgrade feature to meet min version [force] • VS2010 Designer support for dependies, but no support for minimum version in designer • Dependency Rules are the same as in 2007 • Dependents at same scope or higher scope • Hidden features cannot have dedendencies • Hidden dependents are auto activated
New events available • Site Events • SiteDeleting/SiteDeleted • WebDeleting/WebDeleted • WebMoving/WebMoved • WebAdding/WebProvisioned • List Events • EmailReceived • FieldAdding/FieldAdded • FieldUpdating/FieldUpdated • FieldDeleting/FieldDeleted • ListAdding/ListAdded • ListDeleting/ListDeleted • Item Events • ContextEvent • ItemAdding/ItemAdded • ItemUpdating/ItemUpdated • ItemDeleting/ItemDeleted • ItemCheckingIn/ItemCheckedIn • ItemCheckingOut/ItemCheckedOut • ItemUncheckingOut/ItemUncheckedOut • ItemAttachmentAdding/ItemAttachmentAdded • ItemAttachmentDeleting/ItemAttachmentDeleted • ItemFileMoving/ItemFileMoved • ItemFileConverted • Workflow Events • WorkflowStarting/WorkflowStarted • WorkflowPostponed • WorkflowCompleted
Web Provisioning Events • Solves the feature stapling race condition for sub webs
Receiver registration changes • RootWebOnly Attribute • Scope Attribute • ListUrl for a Receiver – Lists/[ListName] • Some Custom actions take advantage of this too
Workflow Association • Used to associate workflow to list based on the workflow template • In 2007, only deployment of templates was available
Feature Property Bag • Promote Properties into Web/Site property bag • Root web • Web • Folder • List Item • No direct VS designer support • Updates value if exists, otherwise adds • Types enforced: DateTime, Int32
CustomActionUIVersion • At Feature chooses UIVersion for all Custom Actions • At Custom action scoped to that object • No UIVersion means the feature works in both modes
Custom action and ribbon • Custom action elements supports adding new ribbon controls to ribbon
Custom action and scripts • Custom action can provide JavaScript links to the pages
Web Templates • Replacement and Improved Framework for template creation • Saves the site in WSP format • New WebTemplate element available in Feature Framework • Deploys corresponding onet.xml as feature element • Available for Site and Farm scopes • Provides possibility to add new templates without custom site definitions
Web Templates demo
Feature Upgrade Object Model enhancements • QueryFeatures method (4 overloads) • (GuidfeatureId) • (GuidfeatureId, boolneedsUpgrade) • (GuidfeatureId, Version featureVersion) • (SPFeatureScope, boolneedsUpgrade) • Available from SPWebService, SPWebApplication,SPContentDatabase and SPSite
Enhancements for the solution deployment options Solution deployment
Solution package changes • Two types of solutions • Farm solutions / full trust solutions • Admin deployed solutions onto farm member servers • Sandboxed solutions • End-user submitted solution • Features deployed to database – usable in site collection level • Solution dependencies • Application Resouce Files • Solution Upgrade
Solution manifest - Changes manifest.xml Activation dependencies ApplicationResourceFiles Assemblies CodeAccessSecurity DwpFiles FeatureManifests Resources RootFiles SiteDefinitionManifests TemplateFiles New New functionanlity added
Farm SolutionsHow does it work in detail Microsoft.POC.Intranet.wsp(WSS Solution Cab) ConfigDB add Feature Manifests delete Site definitions Assemblies UI, CommandLine, OM“deploy”command Deploy/Upgrade retract Farm Servers
Sandboxed SolutionsSolution catalog • New catalog available in the site collection level • _Catalogs/solutions • Contains the sandboxed solutions for particular site collection deployed by users
Solution Dependencies • Ensures a dependent solution is avalable and deployed • Does not deploy dependent solutions • Dependency check at deployment time • No VS 2010 Designer support
Application resource files • App global resources deployment for resource files now supported
Solution Upgrade • Binding redirects to be added to web.config can be defined in manifest.xml file • These can be used to upgrade web part execution assembly as part of the solution upgrade • Assemblies can be versioned • Enables web application level upgrade also for the assemblies in GAC
Package Explorer in Visual Studio • A “package” view of your solution
Summary • Feature Framework changes • New elements and possibilities • Solution deployment changes • New possiblities and supported deployment methods
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.