24
Visual Studio 2010 SharePoint Tools

Share Point Development With Vs10

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Share Point Development With Vs10

Visual Studio 2010 SharePoint Tools

Page 2: Share Point Development With Vs10

OutlineIntroduction to VS2010 SharePoint ToolsSharePoint Tools Project StructureAdding SPIs to a ProjectSharePoint Tools Extensibility

Page 3: Share Point Development With Vs10

SharePoint 2007 Development

Visual Studio Experience Is LimitedVisual Studio Extensions for WSSVisual Studio Tools for Office with VS2008SharePoint developers reliant on community tools

Developers have to deal with tedious detailsManually editing CAML filesUnderstanding RootFiles directory of WSSManual edits to manifest.xml fileBuilding .wsp file for solution package

Page 4: Share Point Development With Vs10

Visual Studio 2010 SharePoint Tools

End-to-end SharePoint 2010 developer storySharePoint Explorer for site explorationSharePoint 2010 project and item templatesVisual designers for core scenariosMigration path for Visual Studio 2008 for WSS 3.0Extensible by 3rd party developers

Benefits to SharePoint developersAbstracts away details of RootFiles directoryAbstracts away details of building .wsp fileLessens/eliminates need for external utilities

Page 5: Share Point Development With Vs10

SharePoint ExplorerAdd-in for Server Explorer window

Easy way to examine site artifactsQuick way to launch browser into site

SharePoint Explorer extensibilityDevelopers can write add-ins to populate nodes and provide contextual menu commands

Page 6: Share Point Development With Vs10

SharePoint Explorer

demo

Page 7: Share Point Development With Vs10

OutlineIntroduction to VS2010 SharePoint ToolsSharePoint Tools Project StructureAdding SPIs to a ProjectSharePoint Tools Extensibility

Page 8: Share Point Development With Vs10

SharePoint 2010 Project Templates

SharePoint Projects have standard properties

Project FileProject FolderActive Deployment ConfigurationInclude Assembly in PackageAssembly Deployment TargetSandboxed SolutionSite URLStartup Item

Page 9: Share Point Development With Vs10

SharePoint 2010 Project StructureStandard Project Nodes

Properties (standard with all Visual Studio projects)

References (standard with all Visual Studio projects)

Features (added by SharePoint Tools)

Package (added by SharePoint Tools)

SharePoint Project Items(added using SharePoint Tools Project Item Templates)

Page 10: Share Point Development With Vs10

Feature Node and Feature DesignerFeature node contains one or more features

Feature designer provides design mode and XML text ModeCustomize feature properties in designer and/or property gridUse Context menu of Feature node to add feature event receiverFeature designer allows adding/removing SPIsCustomize feature activation dependencies

Page 11: Share Point Development With Vs10

Mapped Folders

Mapped Folders used to deploy to RootFilesLayouts folder maps to virtual path /_layoutsImages folder maps to virtual path /_layoutsYou can map other folders inside RootFiles directory

Layouts folder key to creating application pagesBest practice to create solution-specific folder inside Layouts

Page 12: Share Point Development With Vs10

SPT Deployment OptionsTwo Deployment configuration by default

DefaultNo Activation

Page 13: Share Point Development With Vs10

The F5 Debugging ExperienceWhat does F5 do?1.Builds new version of .wsp file2.Deactivates/uninstalls feature3.Retracts/deletes old .wsp file4.Adds/deploys new .wsp file5.Activates feature in target site (via Site Url)6.Attaches debugger to W3WP.EXE

worker process (via Site URL)

Page 14: Share Point Development With Vs10

Hello World with VS 2010 SharePoint Tools

demo

Page 15: Share Point Development With Vs10

OutlineIntroduction to VS2010 SharePoint ToolsSharePoint Tools Project StructureAdding SPIs to a ProjectSharePoint Tools Extensibility

Page 16: Share Point Development With Vs10

SharePoint Project Items (SPIs)Projects built with SharePoint Items (SPIs)

SPI is a logical collection of project filesExamples of SPIs are WebParts, List Defs, Workflows, etc

Each SPI has folder with SPI filesCompilation & deployment details abstracted away through SPI file properties

Page 17: Share Point Development With Vs10

SPI File Properties

Project tracks properties for each SPI FileVisual Studio properties for compilationSharePoint 2010 properties for deployment

Page 18: Share Point Development With Vs10

SharePoint Project Item Templates

Page 19: Share Point Development With Vs10

MetroWebParts

demo

Page 20: Share Point Development With Vs10

OutlineIntroduction to VS2010 SharePoint ToolsSharePoint Tools Project StructureAdding SPIs to a ProjectSharePoint Tools Extensibility

Page 21: Share Point Development With Vs10

SharePoint 2010 Tools Extensibility

SharePoint 2010 Project system extensibilityCustom extensions integrate into VS10 designer experienceUsed to create custom SPIs not supported out-of-boxMuch easier than standard VS extensibility model

SPI & Context Menu extensibilityExtend VS context menu for standard and custom SPIsProvide extensibility to enable access to SP server API

SP Explorer Nodes & Menu extensibilityCreate extension to add a node to the SP ExplorerCreate extension to enhance existing node

Page 22: Share Point Development With Vs10

Creating a Custom SPICreating a custom SPI Template

Custom SPI is a creatable project item templateUsed to add SPI instance to SharePoint projectsYou can extend SPI with custom menus and properties

SPI can be extended with custom menu commands

Custom SPI Template used to add SPI instances to project

SPI can be extended with custom properties

Each SPI instance gets it own folder and can be initialized with a set of files

Custom SPI Template

Page 23: Share Point Development With Vs10

CustomAction

demo

Page 24: Share Point Development With Vs10

SummaryIntroduction to VS2010 SharePoint ToolsSharePoint Tools Project StructureAdding SPIs to a ProjectSharePoint Tools Extensibility