20
SharePoint 2010 Development using Visual Studio 2010 21-04-2010 Shane O’Sullivan Storm Technology

Visual Studio 2010 for SharePoint Developers

Embed Size (px)

DESCRIPTION

My slides from the Visual Studio Launch events in Cork and Galway

Citation preview

Page 1: Visual Studio 2010 for SharePoint Developers

SharePoint 2010 Development using Visual Studio 2010

21-04-2010

Shane O’SullivanStorm Technology

Page 2: Visual Studio 2010 for SharePoint Developers

2

About Storm Technology

Microsoft Gold Partner

Custom Development (.Net)

Information Worker (IW) Consultancy

(SharePoint, Biztalk, .Net)

Application Lifecycle Management (ALM)

Consultancy (Team Foundation Server)

www.storm.ie

Page 3: Visual Studio 2010 for SharePoint Developers

3

Previous SharePoint Development Scenarios

Visual Studio development experience

very limited

Visual Studio Extensions for WSS (VSeWSS)

Visual Studio Tools for Office

Developers reliant on Community tools

WSP Builder

Solution Generator

And on occasion, .NET Reflector - for all those

undocumented features of the SharePoint API!

Page 4: Visual Studio 2010 for SharePoint Developers

4

Visual Studio 2010 SharePoint Tools

Provides a platform for end to end

SharePoint development

SharePoint explorer

SharePoint 2010 Project templates and item templates

Visual Designer for core scenarios including Feature

and Package management

Vastly improved debugging experience

Extensible platform by 3rd party developers

Page 5: Visual Studio 2010 for SharePoint Developers

5

Visual Studio 2010 SharePoint Tools

Benefits to the developer

Developers can easily package/deploy/manage

solutions from within Visual Studio

Visual Studio abstracts away details of the 14

hive for deployment

Reduces dependency on third party tools for

SharePoint Development

Page 6: Visual Studio 2010 for SharePoint Developers

SharePoint explorer

Add-in for Server

explorer window

Allows user to explorer

SharePoint site items

Quick way to launch

site into browser

Extensible – Developers

can write add-ins

6

Page 7: Visual Studio 2010 for SharePoint Developers

DemoSharePoint Explorer

Storm Technology

Page 8: Visual Studio 2010 for SharePoint Developers

SharePoint 2010 Projects

Visual Studio 2010 SharePoint Tools

Storm Technology

Page 9: Visual Studio 2010 for SharePoint Developers

9

SharePoint 2010 Project Templates

All Projects built using a standard

structure

Page 10: Visual Studio 2010 for SharePoint Developers

10

SharePoint 2010 Project Structure

Project Structure

Properties

References

Features (Added by SP 2010 Tools)

Package (Added by SP 2010 Tools)

Individual Items

Mapped Folders

Easily Add Layouts\Images mapped

folder

Ability to map to other folders in the

14 hive

Page 11: Visual Studio 2010 for SharePoint Developers

11

Feature Designer

Provides Graphical and

XML mode for managing

features in a solution

Allows customization of

feature properties

Allows addition of a

feature event receiver

Allows addition/removal

of SPIs

Customize activation

dependencies

Page 12: Visual Studio 2010 for SharePoint Developers

12

SharePoint Tools Deployment Options

Two deployment

configurations by

default

Default

No Activation

Page 13: Visual Studio 2010 for SharePoint Developers

13

Debugging

Debugging experience much better

Hitting F5 performs the following

▪ Builds a new version of the WSP

▪ Deactivate/uninstall existing versions of the feature

▪ Retracts/Deletes WSP

▪ Deploys the new WSP

▪ Activates the feature (based on the site URL property)

▪ Attaches debugger to w3wp.exe worker process (based

on the site URL property)

Page 14: Visual Studio 2010 for SharePoint Developers

14

SharePoint Project Item Templates

Page 15: Visual Studio 2010 for SharePoint Developers

15

Demo – Meeting Room Manager

“I need someone well-versed in the art of torture – do you know PowerPoint?”

Page 16: Visual Studio 2010 for SharePoint Developers

16

SharePoint 2010 Developer Dashboard

Shows diagnostics and performance

related statistics on a SharePoint page

How long did the request take to run

What events were fired

In what sequence did these event handlers fire?

Page 17: Visual Studio 2010 for SharePoint Developers

17

SharePoint Developer Dashboard

Page 18: Visual Studio 2010 for SharePoint Developers

18

Summary

Introduction to Visual Studio 2o1o SharePoint

tools

SharePoint tools project structure

Adding SPIs to a project

Packaging/Feature management

Debugging

Sandboxed Solutions

Developer Dashboard

Page 19: Visual Studio 2010 for SharePoint Developers

Q & AVisual Studio 2010 SharePoint tools

Storm Technology

Page 20: Visual Studio 2010 for SharePoint Developers

20

Contact Details

Shane O’Sullivan

Solutions Architect

Storm Technology Ltd.

[email protected] (remove

the NOSPAM)

Twitter - #shaneosullivan