paul andrew technical product manager microsoft session code: ofc204

56

Upload: diane-palmer

Post on 16-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 2: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Easy SharePoint Development with VSeWSS 1.3

Paul AndrewTechnical Product ManagerMicrosoftSession Code: OFC204

Page 3: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Agenda

Types of applications to build and tools to use

Demo – build a web part using a data list

Application lifecycle management integration

Overview of best practices

More demos

Page 4: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Types of Applications to BuildCollaborative business applications

Line of Business applicationsSmall intranet applications

One page apps – web part, data list, In the PortalCustomize enterprise SharePoint workloads

PortalCollaborationBusiness ProcessBusiness IntelligenceSearchContent Management

SharePoint public web content management

Page 5: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Solution Development Roles

•Creates content for Content Managed Site

•Modifies SharePoint lists and views

•Adds web parts to pages

Information Worker

•Does site design of HTML and CSS

•Builds simple workflows

•Creates and publishes InfoPath Forms

•Create Data View web parts

Designer or Power User

•Writes new web parts and web services

•Builds custom code for WSP deployment

•Builds complex workflows in code

Professional Development

Coder

Page 6: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

ProfessionalDevelopment CoderCustom Coding

Custom web parts

Site definitions

List definitions

Content types

Microsoft Visual Studio

2008Designer or

Power User or

Developer

Create lists and doclibs

Design Web pages

No-code data view/forms

Web part hookup

SharePoint Designer 2007 +

Browser

Collaborative Development

Page 7: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Visual Studio SharePoint ToolsRoadmap SharePoint 2007 and SharePoint 2010

• F5 Deploy Debug• WSP Packaging• SPSolGen• WSP View

Visual Studio 2005VSeWSS 1.0/1.1

• SharePoint Sequential Workflow

• SharePoint State Machine Workflow

Visual Studio 2008• 64 bit support• WSP View Improved• Separate Package

Command• Command Line Build

Visual Studio 2008VSeWSS 1.2/1.3

• Multiple Visual Designers

• Packaging and Deployment

• TFS integration• Extensible Projects

and Tools

Visual Studio 2010

Upgrade Tool

Mar 2007 / Feb 2008 Nov 2007 June 2008 / Mar 2009 2010

Page 8: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

1. Separate Deployment Commands VSeWSS 1.3 New Features

Page 9: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

2. Command Line BuildsVSeWSS 1.3 New Features

Page 10: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

3. Support for Productive Dev BuildsVSeWSS 1.3 New Features

Page 11: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

4. Auto Web Part RenamingVSeWSS 1.3 New Features

Page 12: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

5. Deployment Conflict ResolutionVSeWSS 1.3 New Features

Page 13: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

6. Better WSP View CleanupVSeWSS 1.3 New Features

Page 14: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

7. 64 Bit SupportVSeWSS 1.3 New Features

Page 15: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

8. Deploy Additional AssembliesVSeWSS 1.3 New Features

Page 16: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

VSeWSS 1.3 What You GetItem templates

Web partEvent receiverList definitionContent typeField controlModuleRoot fileTemplateList instanceList definition from content type

Page 17: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

VSeWSS 1.3 What You GetWSP View, Package, Solution Generator, etc.

WSP View (CTRL W-I)Rearrange featuresAdd feature receiversPackage and retractSETUP.BATSolution generatorUser guide and helpProject templates

Workflow in VS2008

Page 18: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

VSeWSS 1.3 Getting Started Dev Site http://MSSharePointDeveloper.com

Web partsData listsEvent handlersWorkflowSilverlight web partsPage navigationPage brandingWeb servicesContent typesUser management

Online hands on labsDownloadable VPC imageTraining videos

Page 19: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

VSeWSS 1.3 Getting Help

Use the MSDN SharePoint ForumsCall Support if it is critical http://support.microsoft.com

http://MSSharePointForums.com

Page 20: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Visual Studio 2010 SharePoint Tools

Packaging Explorer

Web Page EditingCreate, explore, and debug SharePoint projects

Web part, page and workflow designersPackage and deploy SharePoint projectsTeam foundation server integrationSupport for SharePoint sandboxed solutions

Broad SharePoint SupportImport WSP from SharePoint designer including workflowPackage and deploy Office Business Applications (OBA)Extensibility for development of additional SharePoint artifactsSharePoint Business Connectivity Services support

Page 21: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Build a Web Part Using a Data Listdemo

Page 22: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Application Lifecycle ManagementWhat is it?The coordination of all aspects of software engineering—including the following:

The formulation and communication of business and technical requirementsCode design and architectureProject trackingChange managementCoding, testing, debuggingRelease management—by using tools that facilitate and track collaboration among and within work teams

Page 23: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointCode

C# or VB.NET, May include design artifactsDevelopersBuilt in Visual StudioChecked into Team Foundation Server

ContentText and Images

UsersBuilt in the SharePoint HTML UIChecked into SharePoint site

DesignHTML, CSS, Theme, List Schema, Page StructureDesignersBuilt in SharePoint DesignerChecked into SharePoint site

Page 24: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointContent

VersioningCreate a Pages Document LibraryTurn on versioning Covert master page to versionedhttp://blogs.msdn.com/sharepointdesigner/archive/2008/11/07/page-versioning-v2.aspx

Environment DeploymentContent Deployment

Page 25: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointDesign

VersioningCan approach same as content if using SharePoint DesignerCan export to Visual Studio environment

Environment DeploymentDirect - Content DeploymentVia Visual Studio - WSP

Page 26: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointCode

VersioningTeam Foundation Server integration

Add project to source control & add \pkg folder\pkg holds feature names and manifest details

Delete - feature names gone

Require read write from Visual StudioIn TFS Explorer mark \pkg for Shared Checkout

Environment DeploymentWSP Solution Automated Builds

Manual WSP Build ProjectOriginal: XML, GUIDs, Batch Files, STSADM

Patterns and Practices SharePoint Guidance

Solution with VSeWSS 1.2VSeWSS 1.3

Added Support for Direct DEVENV.EXE Build

Visual Studio 2010Supports MSBuild standalone builds

Page 27: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

SharePoint Guidance from P&PCode

Page 28: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Automated Buildsdemo

Page 29: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointContent Design Code

How do you manage lifecycle across all three?Users create site contentDevelopers create softwareDesigners work on content and site structure

What is the issue?SharePoint Designer acts on site instanceVisual Studio creates site templates as WSP

What to do about the mismatches?1. Keep them separate2. Merge them together

Page 30: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointContent Design Code – Environment Setup

Developers WorkstationsVisual Studio 2008 extensions for SharePointLocal SharePoint Install

Designers WorkstationsSharePoint Designer & Local SharePoint InstallRun STSADMExtractFiles

Build Automation ServerMerge artifacts in Visual Studio project

Developers work onCode

Designers work onMaster PagesPage LayoutStylesImagesSite ColumnsContent TypesList Templates

Extract SPD Files to Visual Studio WSP Project

STSADMExtractFilesGenSiteColumnsXMLSPSolGen

Page 31: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Artifacts Requiring ALM in SharePointContent Design Code – Environment Setup

Page 32: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

ALM for Workflows Versioning and Deployment Specifics

Choose the workflow starting point

Built in workflowsSharePoint Designer workflowsVisual Studio workflows

Migrating workflows from SharePoint Designer to Visual Studio

Third -party guidance Looks promisinge.g. Emile Bosch http://www.codeplex.com/SPDToolkit e.g. Todd Bleeker

SharePoint Workflow Projects

Separate Solutions as Visual Studio 2008 has in box supportDeploy SharePoint Workflow using WSP

http://blogs.msdn.com/mwasham/archive/2009/01/22/how-to-deploy-a-workflow-with-vsewss-1-3.aspx

Page 33: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Development Best PracticesPatterns and practices

Artifact version upgradeTest driven developmentTeam development and continuous integrationThree patterns

Developer best practices resource center for SharePointBest practices: common coding issues

Do not use SPList.ItemsWhite paper: working with large listsMemory management and SPDisposeCheck

Article and tool

Page 34: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Development Best PracticesSPDisposeCheck 1.3.1 and Dispose Guidance

SharePoint API’s return IDisposable objects

Managed memory and unmanaged memoryDispose for unmanaged memory

Primarily SPSite and SPWeb objectsULS Logs show leaksSimple Advice

Using statements

Best practice article for disposable objects

http://msdn2.microsoft.com/en-us/library/aa973248.aspx

SPDisposeCheck toolEvaluates AssembliesDo not run on Prod ServerRun in Automated BuildCan Ignore Specific Errorshttp://code.msdn.microsoft.com/SPDisposeCheck

Page 35: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

SPDisposeCheckdemo

Page 36: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Ten New Themes for VSeWSS 1.3

VSeWSS projectsCompile and deploy to SharePointUse in your projectsLink on my blog http://blogs.msdn.com/pandrew

Page 37: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 38: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 39: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 40: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 41: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 42: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 43: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 44: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 45: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 46: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

X

Page 47: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

SharePoint Server 2010 DevelopmentWhat’s public about SharePoint Server 2010 now?

The new product nameSharePoint Server 2010

Ref: http://www.microsoft.com/presspass/features/2009/Apr09/04-15Office2010.mspx

The new developer toolsVisual Studio 2010 SharePoint tools

Ref: http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx Ref: http://blogs.msdn.com/somasegar/archive/2009/02/19/sharepoint-tools-support-in-visual-studio.aspx Ref: http://channel9.msdn.com/posts/VisualStudio/Sharepoint-Development-with-Visual-Studio-2010/ Ref: http://download.microsoft.com/download/C/0/9/C0965791-049B-4200-9008-F07A783026F6/VisualStudio2010_ProductOverview.pdf

SharePoint Designer is now freeRef: http://office.microsoft.com/en-us/sharepointdesigner/HA103607611033.aspx

Tools roadmapVSeWSS 1.3 now and Visual Studio 2010 in the futureAn upgrade tool and written guidance for customers moving from SharePoint 2007 to SharePoint Server 2010

Page 48: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

SummaryTypes of applicationsVisual Studio 2008 and VSeWSS 1.3 Visual Studio 2010 SharePoint ToolsGetting Started - MSSharePointDeveloper.comGetting Help - MSSharePointForums.comSharePoint ALM - Content Design Code Patterns and practices SharePoint guidanceSPDisposeCheck and dispose guidanceSome cool themes

Page 49: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

ResourcesPaul Andrew’s Bloghttp://blogs.msdn.com/pandrew

MS SharePoint Developerhttp://MSSharePointDeveloper.com

VSeWSS 1.3 March CTP Releasewww.microsoft.com/downloads/details.aspx?familyid=FB9D4B85-DA2A-432E-91FB-D505199C49F6 MSDN Forums for SharePointhttp://MSSharePointForums.com Patterns and Practices SharePoint Guidancehttp://www.microsoft.com/spg Application Lifecycle Management Resource Center for SharePointhttp://msdn.microsoft.com/en-us/office/cc990283.aspxDeveloper Best Practices Resource Center for SharePointhttp://msdn.microsoft.com/en-us/office/dd638301.aspx .NET Reflectorwww.red-gate.com/products/reflector/ Typemock Isolator for SharePointhttp://www.typemock.com/unit-testing-Microsoft-SharePoint.html SPDisposeCheckhttp://code.msdn.microsoft.com/SPDisposeCheck

Page 50: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

question & answer

Page 51: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

www.microsoft.com/teched

Sessions On-Demand & Community

http://microsoft.com/technet

Resources for IT Professionals

http://microsoft.com/msdn

Resources for Developers

www.microsoft.com/learningMicrosoft Certification and Training Resources

www.microsoft.com/learning

Microsoft Certification & Training Resources

Resources

Page 52: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Track ResourcesSpin the Wheel: Attend SharePoint breakout sessions Mon-Thurs and collect the picture of the day. Come by the booth for a chance to spin the SharePoint wheel. Collect all 4 pictures and enter to win a Microsoft Arc Mouse, drawing 11:30am on Friday, game cards at the booth.

Product Info http://www.microsoft.com/SharePoint

Dev ResourcesSharePoint MSDN Web Site: http://msdn.microsoft.com/sharepointSharePoint Developer Resources: http://mssharepointdeveloper.com/

SharePoint Conference 2009 www.mssharepointconference.com

ITPro ResourcesSharePoint Tech Center: http://technet.microsoft.com/en-us/office/sharepointserver/SharePoint Best Practices:http://technet.microsoft.com/en-us/office/sharepointserver/bb736746.aspx

Page 53: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Attend an Interactive Theater Session and enter to win a Microsoft ARC Mouse

Attend any SharePoint Breakout Session day 1 – 4 and check the last slide for a daily picture.

Come to the TLC yellow area, SharePoint booths OFC 4 & 5 to spin the wheel for a chance to win a prize. The wheel only spins when the SharePoint spotlight is flashing. One spin per person.

Collect all four daily SharePoint pictures and enter to win a Microsoft ARC Mouse. Game cards can be picked up at the booth.

Drawing for Mice on Friday at the wheel at 11:30AM.

Monday’s Picture is:

Red Carpet

Collect the SharePoint Session Picture of the Day

Page 54: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

Complete an evaluation on CommNet and enter to win!

Page 55: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204
Page 56: Paul Andrew Technical Product Manager Microsoft Session Code: OFC204

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