Docstoc

10175A_M02

Document Sample
10175A_M02 Powered By Docstoc
					            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
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
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
Designing and Developing SharePoint Sites by
Using SharePoint Designer 2010
Administrator Tasks       Site Designer Tasks     Developer Tasks

Managing security         Managing themes         Creating and managing
                                                  storage
Setting site properties   Editing pages           Creating and managing
                                                  content types
Managing site RSS         Managing master pages   Creating, managing,
feeds                                             and prototyping
                                                  workflows
Managing list settings    Managing site assets    Creating and managing
                                                  simple business
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
SharePoint Project Types

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

Visual Web Part                     List Definition

Web Part                            List Instance

Sequential Workflow                 Empty Element

State Machine Workflow              User Control

Business Data Connectivity Model

Application Page                    Folders

Event Receiver                      Images

Content Type                        Layouts

List Definition from Content Type   Other Mapped Folders
Creating SharePoint Storage Items by Using
Visual Studio 2010
• List Definitions
     Elements.xml
     Schema.xml

• List Instances
     Elements.xml
     Data
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>
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>
...
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">Geert Camelbeke</Field>
        </Row>
        <Row>
          <Field Name="Title">Ivo Hamels</Field>
        </Row>
        <Row>
          <Field Name="Title">Eduardo Melo</Field>
        </Row>
        <Row>
          <Field Name="Title">Svetlana Omelchenko</Field>
        </Row>
      </Rows>
    </Data>
  </ListInstance>
</Elements>
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
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
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
Deploying SharePoint Solutions by Using Visual
Studio 2010
• Deployment Settings
     Site Url
     Sandboxed Solution

• Deployment Process

• Build and Context Menus
     Build
     Package
     Deploy
     Retract
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
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
Adding Custom Assemblies to SharePoint Solutions
• Package Designer
     Advanced tab
     Source path
     Target
       •   GAC
       •   Web Application Bin folder
     Safe controls
     Class resources
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
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
 Virtual machine             10175-LON-DEV-02
 User name                   Administrator
 Password                    P@ssw0rd


Estimated time: 60 minutes
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?
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

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:30
posted:1/3/2012
language:Latin
pages:23