430 likes | 711 Views
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.
E N D
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 • 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)
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
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
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
Major Shifts in SharePoint UI • Server ribbon • In-place editing Popup dialog AJAX refresh
SharePoint 2010 UI demo
Outline • What’s New in SharePoint 2010 • SharePoint 2010 Development Primer • New Developer Tools for SharePoint 2010 • SharePoint 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)
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)
SharePoint 2010 OM demo
Outline • What’s New in SharePoint 2010 • SharePoint 2010 Development Primer • New Developer Tools for SharePoint 2010 • SharePoint 2010 Integration with PowerShell
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
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
Trends in SharePoint Development Agility Access Team Cloud
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
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
Building Lists Demo
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
JavaScript Support Demo
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
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)
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 };
Unit Testing Support Demo
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
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.
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)
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
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
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
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.com www.NetComLearning.com