developing for sharepoint with visual studio

Post on 25-Feb-2016

101 Views

Category:

Documents

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

Developing for SharePoint with Visual Studio. Jason Keicher jkeicher@Microsoft.com. 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

Developing for SharePoint with Visual StudioJason Keicherjkeicher@Microsoft.com

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

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

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

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

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

SharePoint 2010 Team Site

Major Shifts in SharePoint UIServer ribbon

In-place editing

Popup dialog

AJAX refresh

SharePoint 2010 UI

demo

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

SharePoint Terminology Review- Farm (SPFarm)

- Web Application (SPWebApplication)

- Site Collection (SPSite)

- Site (SPWeb)

- List (SPList) - Item (SPListItem)

- Document Library (SPDocumentLibrary)

- File (SPFile)

- Folder (SPFolder)

Remember This Code from WSS v3?

SharePoint 2010 Developer Dashboard

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

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

SharePoint 2010 OM

demo

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

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

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

SharePoint Designer 2010

demo

Trends in SharePoint DevelopmentAgility Access Team Cloud

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

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

Building ListsDemo

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

JavaScript SupportDemo

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

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

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};

Unit Testing SupportDemo

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

Visual Studio 2012 Profiler

Demo

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

Intellitrace Support in SharePoint

Demo

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

Test features in SharePoint

Demo

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

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

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

Unleash your potential with VS.2012

More engaging

More efficient

More informed

More quality focused

MCSD: SharePoint Developer

www.netcomlearning.com

MCSD: SharePoint Developer | Step 1

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

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

Q & A

1-888-5-NETCOM (563-8266)info@netcomlearning.comwww.NetComLearning.com

top related