1 / 32

Feature Framework and Solution Deployment Improvements in SharePoint 2010

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.

adelle
Download Presentation

Feature Framework and Solution Deployment Improvements in SharePoint 2010

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Feature Framework and Solution Deployment Improvements in SharePoint 2010 Name Title Company

  2. Agenda • Feature Framework changes • New elements and possibilities • Solution deployment changes • New possiblities and supported deployment methods

  3. Enhancements for the Feature Framework Feature Framework

  4. Feature Improvements • Feature Versioning & Upgrade (ALM) • Activation Dependency Options • New Events • Workflow Association • Property Bag • Web Templates • New custom action options

  5. Feature Versioning & Upgrade • Version Range – BeginVersion/EndVersion • Upgrade Elements • CustomUpgradeAction • Parameters • ApplyElementManifest • MapFile – FromPath/ToPath • AddContentTypeField

  6. 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

  7. 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

  8. Web Provisioning Events • Solves the feature stapling race condition for sub webs

  9. Receiver registration changes • RootWebOnly Attribute • Scope Attribute • ListUrl for a Receiver – Lists/[ListName] • Some Custom actions take advantage of this too

  10. Workflow Association • Used to associate workflow to list based on the workflow template • In 2007, only deployment of templates was available

  11. 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

  12. 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

  13. Custom action and ribbon • Custom action elements supports adding new ribbon controls to ribbon

  14. Custom action and scripts • Custom action can provide JavaScript links to the pages

  15. Custom schema support for list instances

  16. 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

  17. Web Templates demo

  18. Feature Upgrade Object Model enhancements • QueryFeatures method (4 overloads) • (GuidfeatureId) • (GuidfeatureId, boolneedsUpgrade) • (GuidfeatureId, Version featureVersion) • (SPFeatureScope, boolneedsUpgrade) • Available from SPWebService, SPWebApplication,SPContentDatabase and SPSite

  19. Enhancements for the solution deployment options Solution deployment

  20. 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

  21. Solution manifest - Changes manifest.xml Activation dependencies ApplicationResourceFiles Assemblies CodeAccessSecurity DwpFiles FeatureManifests Resources RootFiles SiteDefinitionManifests TemplateFiles New New functionanlity added

  22. 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

  23. Sandboxed SolutionsSolution catalog • New catalog available in the site collection level • _Catalogs/solutions • Contains the sandboxed solutions for particular site collection deployed by users

  24. 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

  25. Application resource files • App global resources deployment for resource files now supported

  26. App_GlobalResource deployment & solution dependencies demo

  27. 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

  28. Package Explorer in Visual Studio • A “package” view of your solution

  29. Summary • Feature Framework changes • New elements and possibilities • Solution deployment changes • New possiblities and supported deployment methods

  30. © 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.

More Related