jeremy thake introducing alm to share point development implementations (apr2010)

30
Session Code: Introducing SharePoint 2010 Development to ALM #ALM07 Jeremy Thake wss.made4the.net [email protected] @jthake – MCTS – MCT - vTSP

Upload: jeremy-thake

Post on 10-May-2015

2.478 views

Category:

Technology


0 download

DESCRIPTION

An introduction to SharePoint 2010 Development with ALM. Demonstrates Static Code Analysis with SPDisposeCheck, check-in policies and TFS 2010 Build automation.

TRANSCRIPT

Page 1: Jeremy thake   introducing alm to share point development implementations (apr2010)

Session Code:

Introducing SharePoint 2010 Development

to ALM

#ALM07

Jeremy [email protected]@jthake – MCTS – MCT - vTSP

Page 2: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Jeremy Thake Microsoft Virtual Technology Specialist SharePoint Consultant Microsoft Certified Trainer (MCT) Facilitator of Perth SharePoint User Group

Page 3: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Agenda Challenges of SharePoint 2007 Development Enhancements

Environment, Platform, Toolset Demos

Code Analysis, Build Server

Page 4: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Keep your hand up if… You’ve developed on SharePoint You used source control You used a build server You ran SPDisposeCheck You have grey hair

Page 5: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Challenges of SharePoint 2007 dev• Environment setup• Platform learning curve• Toolset support• Team development• Versioned releases

Page 6: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

ENHANCEMENTS

Page 7: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Visual Studio 2010

Page 8: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

DEVELOPMENT ENVIRONMENT

Page 9: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Development Environment• Windows 7/Vista SP1 support• Must be 64-bit• Requires min 4Gb RAM for Foundation• SharePoint 2010 must be installed locally• Wizard installs and configures most things

Page 10: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

PLATFORM ENHANCEMENTS

Page 11: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Business Connectivity Services (BCS)Office Apps

Client Runtime

Offline Operations Cache

DevelopmentPlatform

Business Intelligence

Enterprise content mgmt

Collaboration social

EnterpriseSearch

ECT Store Runtime Security Solution

PackagingOut of the

box UI

Web 2.0DBWCFWeb Service.NET LOB

SharePointDesign Tools

SharePoint Designer 2010

Visual Studio 2010

Page 12: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Overview of Data Technologies

LINQ

Farm Site List Data External ListsData

Platform

Client-side

Server-side

Strongly-typed lists

Weakly-typed lists

Strongly-typed lists

Weakly-typed listsServer OM

Client OM

REST APIs

New in 2010

Improved

Page 13: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Solutions• Sandboxed solutions (think cloud)• Developer dashboard• Support for feature versioning

Page 14: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

List Improvements• Scalability and Performance• Relationships• Validation• Lookup to multiple columns• List Index Auto creation• List Query Throttling• XSLT views

Page 15: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

TOOL ENHANCEMENTS

Page 16: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

SharePoint Tools Continuum

Import

Export

Professional developerBusiness Analyst/Process Designer

Design skeleton workflow processes

View workflow visualizations

Design data-backed business diagrams

Custom Web PartsCode WorkflowsEvent ReceiversList Definitions

Application Pages

WSP Package

Designer/IW/Power User

Create lists & libsDesign Web PagesWeb part hook-up

Views & formsDeclarative Workflows

Page 17: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

VS2010 improvements• Source control support• F5 debugging• Visual Web Part Designer• Server Explorer• Package Designer• Feature Designer• Extendible

Page 18: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

F5 DEBUGGINGDEMO

Page 19: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

CODE ANALYSIS – SPDISPOSECHECKDEMO

Page 20: Jeremy thake   introducing alm to share point development implementations (apr2010)

It’s not perfect…

– Backwards compatibility– .net 4.0 support– 64-bit support in VS2010– Unit testing– Web testing– Accessibility

Page 21: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

BUILD SERVERDEEP DIVE

Page 22: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Build Process

Page 23: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Build Process

Page 24: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Natalie (Excelle),0273316688 Natalie (Excelle),0273316688

Dev PC

Development

Smoke TestingF5

Dep

loy

Team Foundation Server

Check In

Staging

Automated testing

Warm-bloodeduser testing

Build Server

Team Build

SP2010 DLL’sBuild

Unit Testing

Fix Bugs(repeat as necessary)

Nightly build

-OR-

Continuous Integration

Check in WSP

Install and Activate [script]

Bugs

WSP

WSP

Page 25: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

CONFIGURING A BUILDDEMO

Page 26: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

Page 27: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

TFS 2010 64-bit Issue• TFS 2010 RC (and RTM) has a bug

– Code Analysis isn’t installed• Magic steps on SharePointDevWiki.com• Thanks to:

– Duane Kanz, Ravs Kaur, Tom Marsh from Microsoft

Page 28: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

QUESTIONSDEMO

Page 29: Jeremy thake   introducing alm to share point development implementations (apr2010)

www.australianalm.com.au

• SharePoint 2010http://sharepoint.microsoft.com/

• SharePoint Developer Centrehttp://msdn.microsoft.com/en-us/office/aa905503.aspx

• FREE conference videos & slideshttp://msdn.microsoft.com/en-us/sharepoint/ff405669.aspxhttp://www.microsoft.com/downloads/details.aspx?FamilyID=f8cb362c-75ad-4cb9-9fbc-3abcdf6afeaf&displaylang=en

• SharePoint Patterns & Practices Group (SPG)http://www.microsoft.com/spg

• SPDevWiki Web Casthttp://sharepointdevwiki.com/x/A4BlAQ

• SharePoint ALM White Paperhttp://www.repliweb.com/

• SPDisposeCheckStatichttp://spdisposecheckstatic.codeplex.com/

Resources

Page 30: Jeremy thake   introducing alm to share point development implementations (apr2010)

Session code:

Session EvaluationsComplete your session

evaluation forms now for your chance to win some

great prizes.

www.australianalm.com.au

#ALM07