230 likes | 244 Views
Learn to design, develop, and deploy SharePoint sites using SharePoint Designer and Visual Studio 2010. Explore hands-on lessons and practical solutions.
E N D
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
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 • 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
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">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>
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 Estimated time: 60minutes
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