Upgrading 2007 Solutions for SharePoint 2010

Post on 22-Feb-2016

73 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Upgrading 2007 Solutions for SharePoint 2010 . Agenda. Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010. General Upgrade Process. Two approaches to upgrading VSeWSS through Import Template Maintains project layout - PowerPoint PPT Presentation

Transcript

Upgrading 2007 Solutions for SharePoint 2010

AgendaUpgrading Projects to Visual Studio 2010Upgrading Projects to SharePoint 2010Integrating with SharePoint 2010

General Upgrade ProcessTwo approaches to upgrading

VSeWSS through Import TemplateMaintains project layout

Other project types through WSP ImportImports only WSP contentImport code / settings manually

Visual Studio 2010 PackagingOne package per SharePoint projectEasy refactoringFlexible project layout

VSeWSS Import Project Template

Import VSeWSS 1.1 and upShipped separately from VS2010VB.NET and C#Supports Full Trust and Sandboxed projects

Start and Finish

WSP View in VSeWSS

Packaging Explorer in VS2010

Feature layout matches source

SharePoint Project Items (SPIs)Visual Studio 2010 provides flexibility to packaging

Group SPIs conceptually in featuresA SharePoint SPI:

Is stored in its own folderDefines one artifact in the <Elements> file

The folder has the type identifier as metadataCommonly contains the associated code in the same folder

Visual Studio 2010 DesignersFeature Designer

Combine SharePoint artifacts into a feature Zero or more features per project

Packaging Explorer

Add / remove features from entire solutionPackage custom assembliesOne package per SharePoint project

Upgrading Projects to SharePoint 2010

Deprecated and New FeaturesImportant features that are deprecated

STP files for sitesToolbar User Interface

Important features that are addedFluent User InterfaceXSLT-based List RenderingLarge List Throttling

Upgrading STP FilesSTP

WSP

Create Site

Upgrade to 2010

Resolve issues

Save as templat

e

From Toolbar to RibbonSwitch from Toolbar to Ribbon UI Toolbar actions are moved to Custom Commands tab

Similar to Office clientPossible to show toolbar in list formsCode-based actions do not migrate

Deprecated APIsSharePoint 2010 introduces new APIs and deprecates others

Deprecated does not always unsupportedResults in compiler warnings (breaks build with Treat Warnings as Error)Many APIs deprecated since WSS 3.0 are still available

PowerShell commandlets instead of STSADM commands

Working with Compiled CodeIIS

Binding redirects provided from WSS 3.0 to SharePoint 2010

Timer ServiceNo binding redirects, recompile required

Custom AppsProvide own binding redirects or recompile

Compiling your project:Build for the x64 platformTarget .NET Framework 3.5 SP1

Other ConsiderationsAssembly referencesx86 / x64 COM referencesTypeForwardedTo attribute moves classes to other assembliesHTTP Handler / HTTP Module registrations in IIS7 integrated pipeline

Update SharePoint 2007 Constants

New installation foldersc:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14c:\Program Files\Microsoft Office Servers\14.0c:\Program Files\Microsoft Office\Office14

New registry rootsHKLM\Software\Microsoft\Shared Tools\Web Server Extensions\14.0HKLM\Software\Microsoft\Office Server\14.0

Integrating with SharePoint 2010

Backwards Compatible UIPer site configuration of UI mode

3.0 UI

2010 Development

2010 UI

3.0 UI Mode

Toolbars3.0 CSS3.0 Themes

No Interactive calendarsNo In-Place Wiki editsNo Ribbon

SP2007 SP2010

Administrating User Experiences

Site Collection Administration

Hide Site AdministrationUpgrade all sites to 2010 mode

No turning backSite Administration

PreviewUpgrade

No turning back

UI Versioning in the SharePoint OM

Use code to toggle UI versionSPSite.UIVersionConfigurationEnabeled

SPWeb.UIVersionSPWeb.UIVersionConfigurationEnabled

UI versions 3 and 4 are allowedFor preview mode, UI Version is 4 and configuration is enabled

ASP.NET Versioned ControlsVersionedPlaceHolder

Hidden during Render

UIVersionedContentHidden during control creation

<SharePoint:VersionedPlaceHolder runat=”server” UIVersion=”4”>     <asp:Label runat=”server” Text=”Content” /></SharePoint:VersionedPlaceHolder>

<SharePoint:UIVersionedContent runat=”server” UIVersion=”4”>     <ContentTemplate>           <asp:Label runat=”server” Text=”Content” />     </ContentTemplate></SharePoint:UIVersionedContent>

Markup OverhaulStylesheet Changes

CSS structure totally rebuilt WSS 3.0 CSS used for v3 UI Mode

Script ChangesJavaScript minification

Markup CompliancyXHTMLWCAG 2.0 AA

Developer DashboardDisplays developer information about page renderingProgrammable through SPMonitoredScope

using(SPMonitoredScope scope = new SPMonitoredScope(“Message”)){ // code goes here}

SummaryUpgrading Projects to Visual Studio 2010Upgrading Projects to SharePoint 2010Integrating with SharePoint 2010

top related