jeremy thake introducing alm to share point development implementations (apr2010)
DESCRIPTION
An introduction to SharePoint 2010 Development with ALM. Demonstrates Static Code Analysis with SPDisposeCheck, check-in policies and TFS 2010 Build automation.TRANSCRIPT
Session Code:
Introducing SharePoint 2010 Development
to ALM
#ALM07
Jeremy [email protected]@jthake – MCTS – MCT - vTSP
www.australianalm.com.au
Jeremy Thake Microsoft Virtual Technology Specialist SharePoint Consultant Microsoft Certified Trainer (MCT) Facilitator of Perth SharePoint User Group
www.australianalm.com.au
Agenda Challenges of SharePoint 2007 Development Enhancements
Environment, Platform, Toolset Demos
Code Analysis, Build Server
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
www.australianalm.com.au
Challenges of SharePoint 2007 dev• Environment setup• Platform learning curve• Toolset support• Team development• Versioned releases
www.australianalm.com.au
ENHANCEMENTS
www.australianalm.com.au
Visual Studio 2010
www.australianalm.com.au
DEVELOPMENT ENVIRONMENT
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
www.australianalm.com.au
PLATFORM ENHANCEMENTS
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
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
www.australianalm.com.au
Solutions• Sandboxed solutions (think cloud)• Developer dashboard• Support for feature versioning
www.australianalm.com.au
List Improvements• Scalability and Performance• Relationships• Validation• Lookup to multiple columns• List Index Auto creation• List Query Throttling• XSLT views
www.australianalm.com.au
TOOL ENHANCEMENTS
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
www.australianalm.com.au
VS2010 improvements• Source control support• F5 debugging• Visual Web Part Designer• Server Explorer• Package Designer• Feature Designer• Extendible
www.australianalm.com.au
F5 DEBUGGINGDEMO
www.australianalm.com.au
CODE ANALYSIS – SPDISPOSECHECKDEMO
It’s not perfect…
– Backwards compatibility– .net 4.0 support– 64-bit support in VS2010– Unit testing– Web testing– Accessibility
www.australianalm.com.au
BUILD SERVERDEEP DIVE
www.australianalm.com.au
Build Process
www.australianalm.com.au
Build Process
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
www.australianalm.com.au
CONFIGURING A BUILDDEMO
www.australianalm.com.au
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
www.australianalm.com.au
QUESTIONSDEMO
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
Session code:
Session EvaluationsComplete your session
evaluation forms now for your chance to win some
great prizes.
www.australianalm.com.au
#ALM07