Using Visual Studio to Build SharePoint 2010 Solutions


Published on

From SharePoint Saturday Los Angeles. April 2, 2011.

At long last, Microsoft has built in, first-class support for developing SharePoint projects in Visual Studio 2010. This session will cover packaging your code into WSP solutions, managing your features, and debugging. We'll also look at some add-ins that will improve your productivity and demonstrates the extensibility that Visual Studio 2010 has. This session is geared for both seasoned 2007 developers and new ones.

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • THIS SHOULD BE YOUR SECOND TO LAST SLIDE – Encourage everyone to attend and remind them that the Daily Pint is just a few blocks up Pico from SMC (North East)
  • THIS SHOULD BE YOUR LAST SLIDE – Please ensure to leave this on as people are walking out and you’re wrapping things up. Thanks so much!
  • Using Visual Studio to Build SharePoint 2010 Solutions

    1. 1.
    2. 2. Using Visual Studio 2010 to Build SharePoint 2010 Solutions<br />Randy Williams<br />
    3. 3. About the Speaker<br />US-West Coast Manager for Synergy Corporate Technologies<br />Based in San Diego, California<br />Consultant/Trainer/Author<br />SharePoint MVP<br />Specialty in Architecting Solutions<br />Email:<br />Blog:<br />Twitter: @tweetraw<br />
    4. 4. Agenda<br />SharePoint Developer Platform<br />Visual Studio Templates<br />Solutions and Features<br />Debugging and Add-ins<br />
    5. 5. Agenda<br />SharePoint Developer Platform<br />Visual Studio Templates<br />Solutions and Features<br />Debugging and Add-ins<br />
    6. 6. SharePoint Platform and Product<br />Your Product<br />Microsoft Product<br />{your solution here}<br />Platform Infrastructure<br />Base Platform<br />.NET Framework<br />ASP.NET, WCF, Workflow<br />
    7. 7. Development Requirements<br />Requires x64 operating system<br />Windows 7<br />Windows Vista SP1<br />Windows Server 2008<br />Windows Server 2008R2<br />SharePoint 2010 must be installed locally<br />Foundation or Server<br />Visual Studio 2010<br />
    8. 8. Agenda<br />SharePoint Developer Platform<br />Visual Studio Templates<br />Solutions and Features<br />Debugging and Add-ins<br />
    9. 9. VS Templates and Designers<br />Project and Item Templates<br />Templates for many SharePoint elements<br />Support for sandboxed solutions<br />Visual Designers<br />Design web parts<br />Build Business Data Connectivity (BDC) models<br />Create Workflows<br />Workflow Enhancements<br />Site level workflows<br />Templates for association & initiation forms<br />
    10. 10. Project Templates<br />
    11. 11. Project Wizard<br />Site used to deploy & debug solution<br />Support for sandboxed solutions<br />
    12. 12. Item Templates<br />
    13. 13. CKSDev<br />Community Kit for SharePoint Development<br />Extends Visual Studio Project System<br />Just a sample of the add-ins…<br />Automate call to SPMetal from Server Explorer<br />Adding SharePoint references<br />Quick Deploy<br />WSPBuilder Project Conversion<br />Download from<br />Screen casts at<br />
    14. 14. Visual Studio SharePoint Power Tools<br />Additional add-ins<br />Provided by Microsoft<br />Sandboxed-compatible Visual Web Part<br />Sandboxed compilation – displays build errors for disallowed code<br />Download from<br />
    15. 15. Sandboxed Solutions<br />Business Agility<br />Security and Stability<br />Essential Agility<br />Essential Stability<br />Simpler development model<br />Easy & Rapid Deployment<br />Office 365 (Cloud)<br />Limited API Access<br />Monitored Resources<br />Site Collection Quotas<br />Separate Process<br />
    16. 16. Creating a Sandboxed visual web part<br />DEMO<br />
    17. 17. Agenda<br />SharePoint Developer Platform<br />Visual Studio Templates<br />Solutions and Features<br />Debugging and Add-ins<br />
    18. 18. VS SharePoint Projects<br />Project commands<br />Package, Retract<br />Project properties<br />Sandboxed, Site URL<br />Features & Package nodes<br />Mapped folders<br />Project items & files have SharePoint specific properties<br />
    19. 19. Feature Designer<br />Feature Scope<br />Feature Title<br />Add/Remove items<br />View/Edit Feature Manifest<br />
    20. 20. What are Solution (WSP) Packages?<br />Used to Deploy Code<br />Contains all customized files and deployment instructions<br />WSP extension<br />Internally a cabinet file<br />Created by Visual Studio<br />Farm or Sandboxed<br />Assembly.DLL<br />WSP<br />Manifest.XML<br />Content.htm<br />Image.jpg<br />
    21. 21. Package Designer<br />Package name<br />Add/Remove items & features<br />Add assemblies, safe controls, resources<br />View/Edit Package Manifest<br />
    22. 22. Working with Features and Solutions<br />DEMO<br />
    23. 23. Agenda<br />SharePoint Developer Platform<br />Visual Studio Templates<br />Solutions and Features<br />Debugging and Add-ins<br />
    24. 24. Visual Studio Debugging<br />F5 Experience<br />Web.config changes<br />Can still attach to W3WP.exe process<br />Developer Dashboard<br />stsadm-o setproperty -pn developer-dashboard -pvondemand<br />
    25. 25. Server Explorer and SharePoint<br />Tool window which provides view of local SharePoint sites & artifacts<br />View site collections, sites, features, lists, fields, etc…<br />View properties for artifacts<br />Add any number of connections to different sites<br />Read only<br />
    26. 26. SharePoint Manager<br />Extends the concept of the Server Explorer<br />Many properties can be changed<br />Separate Windows Application<br />Must be run on SharePoint Server<br />Do not run against production server!<br />Download from<br />
    27. 27. DEMO<br />Debugging and Add-ins<br />
    28. 28. Don’t Forget<br />SharePint!!<br />Join us at 6:30 pm at TheDaily Pint for a free drink, kindly provided by Rackspace! A great opportunity to network with other SharePoint Professionals!<br />Please complete your Speaker Evaluation and turn it in before you leave. Drop off at the Community table or at the Cafeteria before closing.<br />
    29. 29. Thank you<br />Questions?<br />
    30. 30. Thanks to <br />Our Sponsors<br />