developing for sharepoint with visual studio

43
Developing for SharePoint with Visual Studio Jason Keicher [email protected]

Upload: feo

Post on 25-Feb-2016

101 views

Category:

Documents


5 download

DESCRIPTION

Developing for SharePoint with Visual Studio. Jason Keicher [email protected]. Outline. What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell. SharePoint 2007. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Developing for SharePoint with Visual Studio

Developing for SharePoint with Visual StudioJason [email protected]

Page 2: Developing for SharePoint with Visual Studio

OutlineWhat’s New in SharePoint 2010SharePoint 2010 Development PrimerNew Developer Tools for SharePoint 2010SharePoint 2010 Integration with PowerShell

Page 3: Developing for SharePoint with Visual Studio

SharePoint 2007Windows SharePoint Services (WSS v3)

Site and Workspace Provisioning EngineOut-of-the-box Collaboration Services

Microsoft Office SharePoint Server (MOSS)User Profiles, Search, Workflows, WCMBDC, Excel Services, Forms Services, ECM

Windows SharePoint Services 3.0 (WSS v3)

Browser Clients

MS Word Clients

MS Outlook Clients

Microsoft Office SharePoint Server 2007 (MOSS)

Windows Server 2003 or 2008 (32-bit or x64)

Internet Information Services 6.0 or 7.0

.NET Framework 3.0

Page 4: Developing for SharePoint with Visual Studio

SharePoint Server 2010 and related technologies

An evolved version of MOSS and WSS v3Microsoft SharePoint Server 2010Microsoft SharePoint Foundation 2010 Development can now be done on client OS

Significant enhancement for many development teams

Microsoft SharePoint Foundation 2010

Browser Clients

MS Word Clients

MS Outlook Clients

Microsoft SharePoint Server 2010

Windows Server 2008 (x64 only) for Production Environments Windows 7 or Vista (x64 only) for Development Environments only

Internet Information Services 7.0

.NET Framework and ASP.NET 3.5 SP1

Page 5: Developing for SharePoint with Visual Studio

Microsoft SharePoint 2010The business collaboration platform for the Enterprise and the Web

Connect and Empower People

Cut Costs with a Unified Infrastructure

Rapidly Respond to Business Needs

Communities

Search

Sites

Composites

ContentInsights

Page 6: Developing for SharePoint with Visual Studio

What's New in SharePoint 2010Improvements to UI and accessibility featuresBetter Tools for Developers and DesignersEnd-to-end Integration with PowerShellImprovements to lists and eventsNew WSS integration with LINQNew client-side object model and runtimeEnhanced support for developing workflow applicationsNew Extensible architecture for service applicationsEvolving story for integrating SharePoint with external dataNew Connector framework enhances Search architectureUser Solutions and Partially Trusted CodeThe shift to claims-based security

Page 7: Developing for SharePoint with Visual Studio

SharePoint 2010 Team Site

Page 8: Developing for SharePoint with Visual Studio

Major Shifts in SharePoint UIServer ribbon

In-place editing

Popup dialog

AJAX refresh

Page 9: Developing for SharePoint with Visual Studio

SharePoint 2010 UI

demo

Page 10: Developing for SharePoint with Visual Studio

OutlineWhat’s New in SharePoint 2010SharePoint 2010 Development PrimerNew Developer Tools for SharePoint 2010SharePoint 2010 Integration with PowerShell

Page 11: Developing for SharePoint with Visual Studio

SharePoint Terminology Review- Farm (SPFarm)

- Web Application (SPWebApplication)

- Site Collection (SPSite)

- Site (SPWeb)

- List (SPList) - Item (SPListItem)

- Document Library (SPDocumentLibrary)

- File (SPFile)

- Folder (SPFolder)

Page 12: Developing for SharePoint with Visual Studio

Remember This Code from WSS v3?

Page 13: Developing for SharePoint with Visual Studio

SharePoint 2010 Developer Dashboard

Page 14: Developing for SharePoint with Visual Studio

Debugging SharePoint 2010 CodeMake sure that your start VS 2010 as Admin

Required for attaching VS 2010 debugger to IIS Worker Process (W3WP.EXE)

Page 15: Developing for SharePoint with Visual Studio

SharePoint 2010 OM

demo

Page 16: Developing for SharePoint with Visual Studio

OutlineWhat’s New in SharePoint 2010SharePoint 2010 Development PrimerNew Developer Tools for SharePoint 2010SharePoint 2010 Integration with PowerShell

Page 17: Developing for SharePoint with Visual Studio

VS 2010 SharePoint ToolsSharePoint 2010 development brings new tools

Created by group within Visual Studio 2010 teamMajor step forward from SharePoint 2007 developmentNew tools target SharePoint 2010 onlyThese new tools are introduced in lecture 2

SharePoint Explorer New Project and Item Templates New Project Structure

Page 18: Developing for SharePoint with Visual Studio

SharePoint Designer Improvements

SPD shell’s focus on SharePoint objectsSPD objects have relationshipsIntuitive navigation between SPD objects

SPD work migrates to Visual Studio 2010SPD customization work exported to .wsp files.wsp files imported into Visual Studio

SPD 2007 UI SPD 2010 UI

New UI focusedon SP Objects

Page 19: Developing for SharePoint with Visual Studio

SharePoint Designer 2010

demo

Page 20: Developing for SharePoint with Visual Studio

Trends in SharePoint DevelopmentAgility Access Team Cloud

Page 21: Developing for SharePoint with Visual Studio

Build better experiencesPower tools for customization and development

With efficiencyBe more productive and flexible

Higher qualityTesting advancements reduce defects

And be more organizedAlone or in a team

Focused on YOU

Raise the bar

Engage

Organize

Improve

Page 22: Developing for SharePoint with Visual Studio

New Visual Studio designersRapid list and content type creation and customization

New site column item templateCreate column definitions for use in lists and libraries more easily

IntelliSense improvementsIntelliSense improvements contextually aware

Be Engaging—Tailor-Made Solutions

Page 23: Developing for SharePoint with Visual Studio

Building ListsDemo

Page 24: Developing for SharePoint with Visual Studio

Better JavaScript support for easier web developmentAt design time with IntelliSenseAt debug time with debugging supportAt run-time with URL resolution from content database

Optimized project systemSimpler and cleaner project and item templatesEasy to see which are farm or sandbox itemsNew Silverlight project template

Be Efficient—Get More Done Quickly

Page 25: Developing for SharePoint with Visual Studio

JavaScript SupportDemo

Page 26: Developing for SharePoint with Visual Studio

Testing is no longer just F5Unit testingUse the Microsoft Fakes framework to fake-out dependencies

Performance profiling Understand where time is spent and optimize

Be Informed—Know What and Where

Page 27: Developing for SharePoint with Visual Studio

SharePoint code is hard to testHard-wired dependencies such as SPContext, SPWebDifficult to create unit tests

Microsoft Fakes framework support for SharePointShim or Stub-out dependenciesNo need to change your codeWrite units tests and execute in your favorite tool (not just MSTest)Test execution optimizedSharePoint emulator (library of fakes for many of the common types in the SharePoint API)

Unit Testing—Fakes and SharePoint

Page 28: Developing for SharePoint with Visual Studio

Stub or shimFor virtual and non-virtual member testing

How Does it Work?

// fake SPWebvar spWeb = new Microsoft.SharePoint.Fakes.ShimSPWeb() { UrlGet = () => "http://myurl"}// fake SPContextvar spContext = new Microsoft.SharePoint.Fakes.ShimSPContext(){ WebGet = () => spWeb};

Page 29: Developing for SharePoint with Visual Studio

Unit Testing SupportDemo

Page 30: Developing for SharePoint with Visual Studio

Get insights with code profilingUnderstand where bottlenecks areOptimize based on analysis not guesswork

Improve code coverage in your testsReduce defectsShip better code

Profiler Support in SharePoint

Page 31: Developing for SharePoint with Visual Studio

Visual Studio 2012 Profiler

Demo

Page 32: Developing for SharePoint with Visual Studio

Collect execution data about your solutionStep back in time to see what happened on your SP solution separate serverUnderstand and diagnose errorsIntelliTrace Events to capture SharePoint logging data, UserProfile load, etc.

Analyze it with Visual StudioUse the IntelliTrace collector to navigate to various recorded points in time.Data could have been collected on a server without Visual Studio, such as test, stage or production.

Intellitrace Support in SharePoint

Page 33: Developing for SharePoint with Visual Studio

Intellitrace Support in SharePoint

Demo

Page 34: Developing for SharePoint with Visual Studio

Web Performance TestsVerify performanceRecord tests and then run an anlyze against your SharePoint 2010 servers or Web-Farms

Load TestingStress test your SharePoint solutions simulating high user loadsLoad tests are based on web performance tests

Coded UI testsSimulate user interaction against Sharepoint 2010 solutionsValidate functionality and behavior of your application’s user interface

NOTE (New in VS 2012 UPDATE 1 – Exclusively for SharePoint 2010 solutions)

Test features for SharePoint solutions

Page 35: Developing for SharePoint with Visual Studio

Test features in SharePoint

Demo

Page 36: Developing for SharePoint with Visual Studio

Cloud or local—you chooseZero-friction deployments

On-premise or to cloudLocal for developmentOn-premise farmSharePoint online or azure-based VMs

Deployments—Be in Control

Visual Studio 2012

farm

O365

local

Page 37: Developing for SharePoint with Visual Studio

Keep up with the timesHTML5 support in VS.2012 enables you to create immersive experiences in your SharePoint solutions. Check the new SharePoint 2013, when available

Any deviceCreate great applications however they’re accessed

Great code editorsNew JavaScript and CSS3 editors for the modern webFaster debugging with the new JavaScript engineUsability improvements

Be a Step Ahead

Page 38: Developing for SharePoint with Visual Studio

Create customized solutionsWith powerful new designers

Build great applicationsEasier, quicker, simpler development

Manage your solutionsDeploy on-premise or to the cloudFind and fix issues quickly with the profiler

SharePoint 2010 & Visual Studio 2012

Page 39: Developing for SharePoint with Visual Studio

Unleash your potential with VS.2012

More engaging

More efficient

More informed

More quality focused

Page 40: Developing for SharePoint with Visual Studio

MCSD: SharePoint Developer

www.netcomlearning.com

Page 41: Developing for SharePoint with Visual Studio

MCSD: SharePoint Developer | Step 1

Upcoming Classes:• July 22nd NYC & Live Online• August 17th in Las Vegas & Live Online

Page 42: Developing for SharePoint with Visual Studio

MCSD: SharePoint Developer | Step 2

MCSD: SharePoint Developer• 20488: Developing Microsoft SharePoint Server 2013 Core Solutions• 20489: Developing Microsoft SharePoint Server 2013 Advanced Solutions

Upcoming Classes:• September 23rd in NYC, DC & Live Online• October 7th in Las Vegas & Live Online (All Inclusive Travel Package)

Locations: Attend in-class or Live Online Instructor-led• New York• Las Vegas (All Inclusive Travel Package)• Arlington VA

www.netcomlearning.com