SharePoint Feature and Solution upgrading Bram de Jager | Lead SharePoint Developer | Macaw.

Slides:



Advertisements
Similar presentations
Building Public Facing SharePoint Sites George Durzi Consultant – Clarity Consulting INETA User Group Mentor for IL, WI, and IN.
Advertisements

Philadelphia Area SharePoint User Group January 30, 2013 Chris Mann RJB Technical Consulting
Getting Started with SharePoint 2013 Apps
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Extending Your Reach with SharePoint and Office. Ignite: Office SharePoint Azure.
Microsoft SharePoint 2010 technology for Developers
Thomas Palmié Architect Microsoft Schweiz Implementierung eines mehrsprachigen Intranets basierend auf SharePoint 2010.
ALM with SharePoint 2010 and Visual Studio 2010 Paul Yuknewicz Lead Program Manager, Visual Studio
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Microsoft Patterns and Practices SharePoint Guidance Robert L. Bogue MS MVP, MCSE, MCSA: Security
Packaging Your Advanced SharePoint Customizations Neil Iversen Inetium
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Visual Studio 2010 SharePoint Developer Tools. Developer Tools for SharePoint  Familiar VS Experience  Build, Debug, Deploy SharePoint projects  Visual.
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET, MCTS
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Becky Bertram SharePoint MVP
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
SPC220 Web Template FundamentalsCreating Web Templates Using Web Templates Web Templates and App Webs Wrap Up.
Visio 2010 and Visio Services door Bram de Jager & Edwin Vriethoff 23/02/2011.
OFC308 Windows SharePoint Services (version 3) Development: Using Feature and Solution Definitions for Constructing Custom SharePoint Sites Todd C. Bleeker,
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
SharePoint Development 101: Feature Design By Becky Isserman
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
Windows SharePoint Services 'v3': Creating And Defining Custom Templates, Sites, Features, And Solutions Mike Ammerlaan OFF308 Program Manager Microsoft.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
SharePoint 2010 and Office 2010 Development Randy Williams Senior Consultant & Trainer Synergy Corporate Technologies.
Workflow and SharePoint Presented by Ben Geers. Overview What is workflow? Windows Workflow Foundation How does workflow apply to SharePoint? WSS v3 vs.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
TechEd /22/2017 5:40 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
Office Business Applications Workshop Defining Business Process and Workflows.
Partners’ Webinar 01/31/2013 Karol Jarkovsky Solution Architect Upgrading Kentico.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
WikiPlus Configurations Configure WikiPlus elements to your needs.
© 2009 Ness Technologies – Proprietary and Confidential Kfir Sasson Understanding Features & Solutions In MOSS 2007.
Advanced Feature Development Neil Iversen Inetium
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Site Definitions and Features Overview Review of SharePoint 2003 site definitions What’s.
Adxstudio Portals Training
Microsoft ® Official Course Designing and Managing Features and Solutions Microsoft SharePoint 2013 SharePoint Practice.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
Application Hosting and Customization Introducing Sandboxed Solutions Executing Code in the Sandbox Sandbox Resource Monitoring.
Windows SharePoint Services Development Part 1: Paul Appleby Application Architect Microsoft Limited.
Windows SharePoint Services v3.0 Martin Parry Developer & Platform Group Microsoft Limited
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
How To Build a Production-Ready SP 2013 Farm Martin Cox SharePoint / O365 Architect SharePoint 2013 BI Farm Setup Best Practices.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
Trimantra Software Solution Offshore Software Development Outsourcing Company Visit :
A Developer’s Introduction to SharePoint 2013 Apps Ryan McIntyre, MCITP, MCPD National
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Stress Free Deployments with Octopus Deploy
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
BIWUG | SPSaturday Sandboxed Solutions
SharePoint Site Admin Training
Microsoft Dynamics.
07 | Workflows Chris Johnson | SharePoint Guru
Microsoft Virtual Academy
Visual Studio 2010 SharePoint Development Tools Overview
TechEd /23/2019 9:23 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

SharePoint Feature and Solution upgrading Bram de Jager | Lead SharePoint Developer | Macaw

About Bram Lead SharePoint developer / architect for Information Worker Solutions center of Macaw Started with SharePoint 2003 Worked on projects for Shell, Hogeschool INHolland, Library of Rotterdam and Univé. Contact –

Agenda Basics Solution Upgrade Feature Upgrade Summary

Why? Creating / updating a content type in 1 site collection is easy But having 20 site collections and 10 content types changes the game

When to use a feature? Isolated/ autonomous piece of functionality Distributed deployment Scoping where XML or custom code runs

Initial build (trade-off) Custom code vs. XML Code: –Ability to DEBUG –More control –Upgrade artifact requires code XML: –Site definitions, list template, delegate controls, custom actions…

How was it done in 2007? Solution deployment: deploy and retract –Upgrade was supported but did not install new features Feature events: (un)install and (de)activate –No upgrade support, you would deactivate and active the feature to trigger any logic

Solution package Single file with extention.wsp Contains: –Assemblies (+CAS policies) –Application Pages –User Controls –Features –… Site template is a WSP, no more STP

Deployment life-cycle Add Solution Solution added to Solution Store Deploy Solution Files deployed to File System on all servers Feature install event fires Activate Feature(s) Element files are executed Feature active event fires

DEMO Create solution with choice field, deploy via PowerShell

SOLUTION UPGRADE SharePoint Feature and Solution Upgrading

Farm vs. User solutions Farm solutions supports granular upgrade User solutions will automatically upgrade all features to the latest version

Farm solution upgrade Update-SPSolution –Identity DevDays.wsp – LiteralPath C:\DevDays.wsp –GACDeployment Farm wide –psconfig -cmd upgrade -inplace b2b Granular –QueryFeatures() & Feature.Upgrade()

Granular upgrade QueryFeatures() –Guid featureId –Guid featureId, bool needsUpgrade –Guid featureId, Version featureVersion –SPFeatureScope scope, bool needsUpgrade Available for SPWebService (farm), SPWebApplication, SPContentDatabase, SPSite Feature.Upgrade()

Upgrade life-cycle Upgrade Solution Files updated on File System on all servers Upgrade Feature(s) Upgrade actions executed for specified version Feature upgrading event fires

Replacement or Update Retract & Deploy –Only on initial deployment! –Replaces all feature instances with definition Does not trigger upgrade actions No feature upgrade possible! Update –On new version of the solution –Deploys to file system Doesnt trigger install for new feature :-S

User solution upgrade Upload new solution package in Solution Gallery Press Upgrade button Solution and features are upgraded Its all or nothing

FEATURE UPGRADE SharePoint Feature and Solution Upgrading

Versioning Version attribute On activation a feature instance is created Deploy new version, feature definition gets updated Easy tracking of feature definition and associated feature instances

Feature Upgrade Upgrade according to upgrade actions Based on VersionRange with Begin & End versions –Actions for – –Other actions for –

Multiple versions scenario v –Create Contacts list instance v –Add creation Events list instance v –Add creation Issues list instance

DevDays.wsp Feature DevDays v Feature DevDays v DevDays.wsp Feature DevDays v DevDays.wsp Feature DevDays v Site ASite BSite C Feature DevDays v Feature DevDays v Feature DevDays v Feature DevDays v

Dependencies Child-child element of feature.xml element –New MinimumVersion attribute

UIVersion attribute New UIVersion attribute of feature.xml Specifies UI version for this feature with operators (=,, =, ;) Based on SPWeb.UIVersion (3 or 4) Example: Ribbon custom actions

Declarative upgrade actions New child element in feature.xml element –

DEMO Versioning scenario

CustomUpgradeAction Child element of – New feature receiver FeatureUpgrading() Support for parameters

DEMO Adding field to content type, copy contents, hide old field

SUMMARY SharePoint Feature and Solution Upgrading

Upgrade approach Solution update instead of retract/deploy New feature –Staple to existing site definition for new sites –Script activation on existing sites Upgrade existing feature –Farm wide or granular upgrade

Gotchas BeginVersion inclusive but EndVersion not Solution upgrade does not trigger (un)install event feature –When adding new feature after initial deployment, no (un)install event. Manual Install-SPFeature. Quit PowerShell when building (out of sync) Enable ULS logging, change setting to Verbose –Feature Infrastructure, Fields, General

Q&A SharePoint Feature and Solution Upgrading

Resources MSDN – Packaging and DeploymentPackaging and Deployment Chris OBrien Nuts and Bolts-blogChris OBrien