1 / 23

Module 2 Using SharePoint 2010 Developer Tools

Module 2 Using SharePoint 2010 Developer Tools. Module Overview. Developing SharePoint Sites by Using SharePoint Designer 2010 Developing SharePoint Solutions by Using Visual Studio 2010 Packaging and Deploying SharePoint 2010 Solutions Lab: Using SharePoint 2010 Developer Tools.

catalinae
Télécharger la présentation

Module 2 Using SharePoint 2010 Developer Tools

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. Module 2 Using SharePoint 2010 Developer Tools

  2. Module Overview • Developing SharePoint Sites by Using SharePoint Designer 2010 • Developing SharePoint Solutions by Using Visual Studio 2010 • Packaging and Deploying SharePoint 2010 Solutions • Lab: Using SharePoint 2010 Developer Tools

  3. Lesson 1: Developing SharePoint Sites by Using SharePoint Designer 2010 • Editing SharePoint Sites by Using SharePoint Designer 2010 • Designing and Developing SharePoint Sites by Using SharePoint Designer 2010

  4. Editing SharePoint Sites by Using SharePoint Designer 2010 • SharePoint Designer 2010 Integration with SharePoint 2010 • Two-way integration • SharePoint Site Objects in SharePoint Designer 2010 • Context-Sensitive Ribbon in SharePoint Designer 2010

  5. Designing and Developing SharePoint Sites by Using SharePoint Designer 2010

  6. Lesson 2: Developing SharePoint Solutions by Using Visual Studio 2010 • SharePoint Project Types • SharePoint Project Item Types • Creating SharePoint Storage Items by Using Visual Studio 2010 • List Definition Elements • List Definition Schema • List Instance Elements and Data

  7. SharePoint Project Types • Project Types • Empty SharePoint Project • Visual Web Part • Sequential Workflow • State Machine Workflow • Business Data Connectivity Model • Event Receiver • List Definition • Content Type • Site Definition • Import Options • Reusable Workflow • Solution Packages • Creating SharePoint Projects • Trust Levels • Local Debugging Options

  8. SharePoint Project Item Types

  9. Creating SharePoint Storage Items by Using Visual Studio 2010 • List Definitions • Elements.xml • Schema.xml • List Instances • Elements.xml • Data

  10. List Definition Elements <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListTemplate Name="CandidateList" Type="10001" BaseType="0" OnQuickLaunch="FALSE" SecurityBits="11" Sequence="410" DisplayName="CandidateList" Description="External Candidates" Image="/_layouts/images/itgen.gif" AllowDeletion="FALSE"/> </Elements>

  11. List Definition Schema ... <Fields> <Field ID="{c3a92d97-2b77-4a25-9698-3ab54874bc06}" Name="Candidate" Type="Lookup" DisplayName="Candidate" List="Lists/Candidates" ShowField="Title" Required="TRUE"> </Field> <Field ID="{c3a92d97-2b77-4a25-9698-3ab54874bc19}" Name="Interviewer" Type="User" DisplayName="Interviewer" List="UserInfo" Required="TRUE" ShowField="ImnName" UserSelectionMode="PeopleAndGroups"> </Field> <Field ID="{c3a92d97-2b77-4a25-9698-3ab54874bc81}" Name="Offer" Type="Boolean" DisplayName="Job Offered?" Required="TRUE"> </Field> </Fields> ... ... <Views> <View ...> ... <ViewFields> <FieldRef Name="LinkTitleNoMenu"></FieldRef> <FieldRef Name="Candidate"></FieldRef> <FieldRef Name="Interviewer"></FieldRef> <FieldRef Name="Offer"></FieldRef> </ViewFields> </View> ... </Views> ...

  12. List Instance Elements and Data <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListInstance Title="Candidates" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/Candidates" Description="External Candidates"> <Data> <Rows> <Row> <Field Name="Title">GeertCamelbeke</Field> </Row> <Row> <Field Name="Title">IvoHamels</Field> </Row> <Row> <Field Name="Title">Eduardo Melo</Field> </Row> <Row> <Field Name="Title">Svetlana Omelchenko</Field> </Row> </Rows> </Data> </ListInstance> </Elements>

  13. Lesson 3: Packaging and Deploying SharePoint 2010 Solutions • Managing SharePoint Features by Using Visual Studio 2010 • Managing SharePoint Solutions by Using Visual Studio 2010 • Deploying SharePoint Solutions by Using Visual Studio 2010 • Debugging SharePoint Solutions by Using Visual Studio 2010 • Deploying SharePoint Solutions by Using Windows PowerShell • Adding Custom Assemblies to SharePoint Solutions • Adding Build Events to SharePoint Solutions

  14. Managing SharePoint Features by Using Visual Studio 2010 • Features • Unit of activation or deactivation by site administrators • Visual Studio Feature Designer • Title • Description • Scope • Items • Files

  15. Managing SharePoint Solutions by Using Visual Studio 2010 • Solutions • WSP Installers • Advantages of WSP Installers over MSI Installers • Unit of installation and activation by farm administrators • Visual Studio Package Designer • Name • Reset Web Server • Features and Items • Files

  16. Deploying SharePoint Solutions by Using Visual Studio 2010 • Deployment Settings • Site Url • Sandboxed Solution • Deployment Process • Build and Context Menus • Build • Package • Deploy • Retract

  17. Debugging SharePoint Solutions by Using Visual Studio 2010 • Visual Studio Debugging Tools • Breakpoints • Step Into/Step Over/Step Out • Pause/Stop • Debug windows • Debugger Process Attachments • Debugging Silverlight Applications for SharePoint

  18. Deploying SharePoint Solutions by Using Windows PowerShell Add-SPSolution C:\lab02a.wsp Install-SPSolution -Identity Lab02a.wsp -GACDeployment Install-SPSolution -Identity Lab02a.wsp –GACDeployment -Force Uninstall-SPSolution -Identity Lab02a.wsp Remove-SPSolution -Identity Lab02a.wsp

  19. Adding Custom Assemblies to SharePoint Solutions • Package Designer • Advanced tab • Source path • Target • GAC • Web Application Bin folder • Safe controls • Class resources

  20. Adding Build Events to SharePoint Solutions • Project Properties • Build Events tab • Pre-build event command line • Post-build event command line • Post-build event • Always • On successful build • When the build updates the project output

  21. Lab: Using SharePoint 2010 Developer Tools • Exercise 1: Creating Document Libraries by Using SharePoint Designer 2010 • Exercise 2: Creating SharePoint List Definitions and Instances by Using Visual Studio 2010 • Exercise 3: Packaging Features and Solutions by Using Visual Studio 2010 Logon information Estimated time: 60minutes

  22. Lab Review • How did you start SharePoint Designer 2010? • What were the types of project items you added to a Visual Studio project? • Which file controls the default settings for lists that are defined on a list instance? • Which file controls the actual settings for a list instance? • Which file defines the fields for a list definition?

  23. Module Review • In this module, you have learned to: • Develop SharePoint Sites by Using SharePoint Designer 2010 • Develop SharePoint Solutions by Using Visual Studio 2010 • Package and Deploy SharePoint 2010 Solutions

More Related