SharePoint Developmentwith Microsoft Visual Studio 2010<br />Lynn Langit<br />Microsoft Developer Evangelist<br />http://b...
What & Why SharePoint 2010?<br /><ul><li>.Net / ASP.Net & VS 2010 integration
Huge Install Base
Built-in features
Multiple Editions, including FREE edition</li></ul>Sites<br />Communities<br />Composites<br />Content<br />Insights<br />...
Developer Tools<br />SharePointDesigner 2010<br />Visual Studio 2010<br />ALM<br />Windows 7<br />Project Templates<br />W...
SPS 2010 Developer Enhancements<br />VS 2010 Enhancements <br />Templates , Visualizers and more<br />New (client) object ...
SharePoint Designer – Why? <br />
SPS and PowerShell<br />An alternative to stsadm.exe<br />
SharePoint Admin Site<br />
BEFORE Developing on VS 2010<br />Understand what you can do via other methods FIRST:<br /><ul><li>From within a SharePoin...
From within the SharePoint Administrative site
From within SharePoint designer
From Powershell (scripts)
From CodePlex
From public templates</li></li></ul><li>Visual Studio 2010Developer Tools for SharePoint<br />**Must run VS2010 ‘as admin’...
Leverage .NET and ASP.NET skills<br />You are using the same tools<br />Same designers, controls, etc.<br />Event handling...
SPS Projects in VS 2010 <br />SPS Templates - Now<br />SPS Templates - Then<br />
Deployment:  Project Creation<br />
VS 2010 SPS Empty Project<br />
SharePoint Terminology Review<br />- Farm (SPFarm)<br />  - Web Application (SPWebApplication)<br />    - Site Collection ...
VS 2010 SPS Server Explorer<br />
Visual Web Part<br />New for SharePoint 2010<br />Uses ASP.NET User Controls (ASCX)<br />Can combine ASP.NET and SharePoin...
Demo 1: Visual Web Part<br />
Visual Web Part<br />
Web Part<br />
Packages<br />
Properties: SharePoint Tab<br />
Deployment<br />F5<br />You can now DEBUG as well<br />
SharePoint Item Templates<br />
Business Connectivity Services<br />
Business Connectivity Services<br />Visual designers in VS 2010<br />BCS Explorer<br />BDC method details<br />Tool to gen...
Workflow for SPS<br />SharePoint 2010 offers new development process<br />Envision workflows in Visio<br />Import into Sha...
Creating Workflows in Visio<br />Visio has SharePoint Workflow template<br />Allows you to create workflow design in Visio...
Upcoming SlideShare
Loading in...5
×

SharePoint 2010 for NET Developers

4,170

Published on

slides from my talks in August 2010

Published in: Technology

SharePoint 2010 for NET Developers

  1. 1. SharePoint Developmentwith Microsoft Visual Studio 2010<br />Lynn Langit<br />Microsoft Developer Evangelist<br />http://blogs.msdn.com/SoCalDevGal<br />
  2. 2. What & Why SharePoint 2010?<br /><ul><li>.Net / ASP.Net & VS 2010 integration
  3. 3. Huge Install Base
  4. 4. Built-in features
  5. 5. Multiple Editions, including FREE edition</li></ul>Sites<br />Communities<br />Composites<br />Content<br />Insights<br />Search<br />
  6. 6. Developer Tools<br />SharePointDesigner 2010<br />Visual Studio 2010<br />ALM<br />Windows 7<br />Project Templates<br />WSP Packaging<br />Visual Designers<br />One Development Machine<br />For Developers Only<br />X64 OS Required<br />Source code control<br />Team Foundation Server (TFS)<br />Artifact Focus<br />New Workflow Designer<br />Export as WSP<br />New – Visual Studio – Light Switch (lightweight development) - CTP<br />Developer Tools · Developer Workstation · Team · Design Tools<br />
  7. 7. SPS 2010 Developer Enhancements<br />VS 2010 Enhancements <br />Templates , Visualizers and more<br />New (client) object model<br />LINQ for SharePoint<br />Native support for Silverlight<br />Sandboxed Solutions<br />Support for claims-based security<br />Native support for PowerShell <br />External data lists<br />Designed to work with BCS<br />In all editions of SharePoint<br />
  8. 8. SharePoint Designer – Why? <br />
  9. 9. SPS and PowerShell<br />An alternative to stsadm.exe<br />
  10. 10. SharePoint Admin Site<br />
  11. 11. BEFORE Developing on VS 2010<br />Understand what you can do via other methods FIRST:<br /><ul><li>From within a SharePoint site
  12. 12. From within the SharePoint Administrative site
  13. 13. From within SharePoint designer
  14. 14. From Powershell (scripts)
  15. 15. From CodePlex
  16. 16. From public templates</li></li></ul><li>Visual Studio 2010Developer Tools for SharePoint<br />**Must run VS2010 ‘as admin’<br />
  17. 17. Leverage .NET and ASP.NET skills<br />You are using the same tools<br />Same designers, controls, etc.<br />Event handling model<br />Save “F5” deploy/debug experience<br />Familiar programming model<br />Built on ASP.NET<br />Built on Windows Workflow Foundation<br />Styling is the same<br />Use JavaScript and Silverlight<br />
  18. 18. SPS Projects in VS 2010 <br />SPS Templates - Now<br />SPS Templates - Then<br />
  19. 19. Deployment: Project Creation<br />
  20. 20. VS 2010 SPS Empty Project<br />
  21. 21. SharePoint Terminology Review<br />- Farm (SPFarm)<br /> - Web Application (SPWebApplication)<br /> - Site Collection (SPSite)<br /> - Site (SPWeb)<br /> - List (SPList)<br /> - Item (SPListItem)<br /> - Document Library (SPDocumentLibrary)<br /> - File(SPFile)<br /> - Folder(SPFolder)<br />
  22. 22. VS 2010 SPS Server Explorer<br />
  23. 23. Visual Web Part<br />New for SharePoint 2010<br />Uses ASP.NET User Controls (ASCX)<br />Can combine ASP.NET and SharePoint controls<br />Integrated designer support in Visual Studio<br />Develop, deploy, debug using new SharePoint project system<br />
  24. 24. Demo 1: Visual Web Part<br />
  25. 25. Visual Web Part<br />
  26. 26. Web Part<br />
  27. 27. Packages<br />
  28. 28. Properties: SharePoint Tab<br />
  29. 29. Deployment<br />F5<br />You can now DEBUG as well<br />
  30. 30. SharePoint Item Templates<br />
  31. 31. Business Connectivity Services<br />
  32. 32. Business Connectivity Services<br />Visual designers in VS 2010<br />BCS Explorer<br />BDC method details<br />Tool to generate classes<br />SPMetal - here<br />
  33. 33. Workflow for SPS<br />SharePoint 2010 offers new development process<br />Envision workflows in Visio<br />Import into SharePoint Designer<br />Parameterize<br />Export to Visual Studio 2010<br />Add code<br />
  34. 34. Creating Workflows in Visio<br />Visio has SharePoint Workflow template<br />Allows you to create workflow design in Visio<br />Workflow can be exported to SharePoint Designer<br />
  35. 35. SharePoint Designer Workflows<br />Workflows target a Site or a List<br />
  36. 36. Workflows in Visual Studio 2010<br />Site Workflows<br />List / Item properties are null<br />No auto-start<br />ASP.NET Form Templates<br />New events<br />External Data Exchange<br />public class MyWorkflowEventReceiver<br /> : SPWorkflowEventReceiver<br />{<br />public override void WorkflowStarting(<br />SPWorkflowEventProperties properties)<br /> {<br />// your code here<br />base.WorkflowStarting(properties);<br />}<br />}<br />
  37. 37. SharePoint 2010 & Silverlight<br />New client API build especially for Silverlight<br />New Silverlight Web Part to ease deployment and use of Silverlight Applications<br />Silverlight supports multi-touch applications<br />
  38. 38. Enabling Rich Visualizations<br />No Touch<br />LowTouch<br />High Touch<br />SharePoint<br />Artifact<br />SharePoint<br />Artifact<br /><html/><br />OM, Web 2.0,<br />Service, …<br />ConsistentExperience<br />
  39. 39. Demo 2: SharePoint and Silverlight<br />
  40. 40. Leverage your skillset<br />Connect people to data<br />Enable rich visualizations<br />Go where your users are<br />
  41. 41. Resources<br />Learn SharePoint 2010 on Channel 9http://channel9.msdn.com/learn/courses/SharePoint2010Developer/<br />SharePoint 2010 Developer Centerhttp://msdn.microsoft.com/SharePoint<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×