1 / 43

Developing for SharePoint with Visual Studio

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.

feo
Download Presentation

Developing for SharePoint with Visual Studio

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Developing for SharePoint with Visual Studio Jason Keicher jkeicher@Microsoft.com

  2. Outline • What’s New in SharePoint 2010 • SharePoint 2010 Development Primer • New Developer Tools for SharePoint 2010 • SharePoint 2010 Integration with PowerShell

  3. SharePoint 2007 • Windows SharePoint Services (WSS v3) • Site and Workspace Provisioning Engine • Out-of-the-box Collaboration Services • Microsoft Office SharePoint Server (MOSS) • User Profiles, Search, Workflows, WCM • BDC, Excel Services, Forms Services, ECM Browser Clients Microsoft Office SharePoint Server 2007 (MOSS) MS Word Clients Windows SharePoint Services 3.0 (WSS v3) MS Outlook Clients .NET Framework 3.0 Internet Information Services 6.0or7.0 Windows Server 2003 or 2008 (32-bit or x64)

  4. SharePoint Server 2010 and related technologies • An evolved version of MOSS and WSS v3 • Microsoft SharePoint Server 2010 • Microsoft SharePoint Foundation 2010 • Development can now be done on client OS • Significant enhancement for many development teams Browser Clients Microsoft SharePoint Server 2010 MS Word Clients Microsoft SharePoint Foundation 2010 MS Outlook Clients .NET Framework and ASP.NET 3.5 SP1 Internet Information Services 7.0 Windows Server 2008 (x64 only)for Production Environments Windows 7 or Vista (x64 only) for Development Environments only

  5. 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 Sites Composites Communities Insights Content Search

  6. What's New in SharePoint 2010 • Improvements to UI and accessibility features • Better Tools for Developers and Designers • End-to-end Integration with PowerShell • Improvements to lists and events • New WSS integration with LINQ • New client-side object model and runtime • Enhanced support for developing workflow applications • New Extensible architecture for service applications • Evolving story for integrating SharePoint with external data • New Connector framework enhances Search architecture • User Solutions and Partially Trusted Code • The shift to claims-based security

  7. SharePoint 2010 Team Site

  8. Major Shifts in SharePoint UI • Server ribbon • In-place editing Popup dialog AJAX refresh

  9. SharePoint 2010 UI demo

  10. Outline • What’s New in SharePoint 2010 • SharePoint 2010 Development Primer • New Developer Tools for SharePoint 2010 • SharePoint 2010 Integration with PowerShell

  11. SharePoint Terminology Review - Farm (SPFarm) - Web Application (SPWebApplication) - Site Collection (SPSite) - Site (SPWeb) - List (SPList) - Item (SPListItem) - Document Library (SPDocumentLibrary) - File(SPFile) - Folder(SPFolder)

  12. Remember This Code from WSS v3?

  13. SharePoint 2010 Developer Dashboard

  14. Debugging SharePoint 2010 Code • Make sure that your start VS 2010 as Admin • Required for attaching VS 2010 debugger to IIS Worker Process (W3WP.EXE)

  15. SharePoint 2010 OM demo

  16. Outline • What’s New in SharePoint 2010 • SharePoint 2010 Development Primer • New Developer Tools for SharePoint 2010 • SharePoint 2010 Integration with PowerShell

  17. VS 2010 SharePoint Tools • SharePoint 2010 development brings new tools • Created by group within Visual Studio 2010 team • Major step forward from SharePoint 2007 development • New tools target SharePoint 2010 only • These new tools are introduced in lecture 2 SharePoint Explorer New Project and Item Templates New Project Structure

  18. SharePoint Designer Improvements • SPD shell’s focus on SharePoint objects • SPD objects have relationships • Intuitive navigation between SPD objects • SPD work migrates to Visual Studio 2010 • SPD customization work exported to .wsp files • .wsp files imported into Visual Studio New UI focusedon SP Objects SPD 2007 UI SPD 2010 UI

  19. SharePoint Designer 2010 demo

  20. Trends in SharePoint Development Agility Access Team Cloud

  21. Focused on YOU Build better experiences Power tools for customization and development With efficiency Be more productive and flexible Higher quality Testing advancements reduce defects And be more organized Alone or in a team Engage Improve Raise the bar Organize

  22. Be Engaging—Tailor-Made Solutions New Visual Studio designers Rapid list and content type creation and customization New site column item template Create column definitions for use in lists and libraries more easily IntelliSense improvements IntelliSense improvements contextually aware

  23. Building Lists Demo

  24. Be Efficient—Get More Done Quickly Better JavaScript support for easier web development At design time with IntelliSense At debug time with debugging support At run-time with URL resolution from content database Optimized project system Simpler and cleaner project and item templates Easy to see which are farm or sandbox items New Silverlight project template

  25. JavaScript Support Demo

  26. Be Informed—Know What and Where Testing is no longer just F5 Unit testing Use the Microsoft Fakes framework to fake-out dependencies Performance profiling Understand where time is spent and optimize

  27. Unit Testing—Fakes and SharePoint SharePoint code is hard to test Hard-wired dependencies such as SPContext, SPWeb Difficult to create unit tests Microsoft Fakes framework support for SharePoint Shim or Stub-out dependencies No need to change your code Write units tests and execute in your favorite tool (not just MSTest) Test execution optimized SharePoint emulator (library of fakes for many of the common types in the SharePoint API)

  28. How Does it Work? Stub or shim For virtual and non-virtual member testing // fake SPWeb var spWeb = new Microsoft.SharePoint.Fakes.ShimSPWeb() { UrlGet = () => "http://myurl" } // fake SPContext var spContext = new Microsoft.SharePoint.Fakes.ShimSPContext() { WebGet = () => spWeb };

  29. Unit Testing Support Demo

  30. Profiler Support in SharePoint Get insights with code profiling Understand where bottlenecks are Optimize based on analysis not guesswork Improve code coverage in your tests Reduce defects Ship better code

  31. Visual Studio 2012 Profiler Demo

  32. Intellitrace Support in SharePoint Collect execution data about your solution Step back in time to see what happened on your SP solution separate server Understand and diagnose errors IntelliTrace Events to capture SharePoint logging data, UserProfile load, etc. Analyze it with Visual Studio Use the IntelliTracecollector 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.

  33. Intellitrace Support in SharePoint Demo

  34. Test features for SharePoint solutions Web Performance Tests Verify performance Record tests and then run an anlyze against your SharePoint 2010 servers or Web-Farms Load Testing Stress test your SharePoint solutions simulating high user loads Load tests are based on web performance tests Coded UI tests Simulate user interaction against Sharepoint 2010 solutions Validate functionality and behavior of your application’s user interface NOTE (New in VS 2012 UPDATE 1 – Exclusively for SharePoint 2010 solutions)

  35. Test features in SharePoint Demo

  36. Deployments—Be in Control Cloud or local—you choose Zero-friction deployments On-premise or to cloud Local for development On-premise farm SharePoint online or azure-based VMs local Visual Studio 2012 farm O365

  37. Be a Step Ahead Keep up with the times HTML5 support in VS.2012 enables you to create immersive experiences in your SharePoint solutions. Check the new SharePoint 2013, when available Any device Create great applications however they’re accessed Great code editors New JavaScript and CSS3 editors for the modern web Faster debugging with the new JavaScript engine Usability improvements

  38. SharePoint 2010 & Visual Studio 2012 Create customized solutions With powerful new designers Build great applications Easier, quicker, simpler development Manage your solutions Deploy on-premise or to the cloud Find and fix issues quickly with the profiler

  39. Unleash your potential with VS.2012 More engaging More efficient More informed More quality focused

  40. MCSD: SharePoint Developer www.netcomlearning.com

  41. MCSD: SharePoint Developer | Step 1 • Upcoming Classes: • July 22nd NYC & Live Online • August 17th in Las Vegas & Live Online

  42. 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

  43. Q & A 1-888-5-NETCOM (563-8266) info@netcomlearning.com www.NetComLearning.com

More Related