210 likes | 397 Views
Developing Custom SharePoint applications using VS 2008. Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India vedantk@microsoft.com. Agenda. Development Tools Visual Studio 2008 Extensions Project Templates Item Templates Solution Generator
E N D
Developing Custom SharePoint applications using VS 2008 Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India vedantk@microsoft.com
Agenda • Development Tools • Visual Studio 2008 Extensions • Project Templates • Item Templates • Solution Generator • Custom Workflow • Deployment
Single Infrastructure For Intranet, Internet, and Extranet Portals Extranet Enterprise Internet Division Team Individual
SharePoint Technology Stack User Interface Windows 2003/2008 Web Application Tier Microsoft Office SharePoint Server 2007 Windows SharePoint Services 3.0 .NET Framework 3.0/3.5 Internet Information Services 6.0/7.0 Windows 2003/2008 Data Tier SQL 2005/2008
Adaptive Development PlatformTools for Any Skill Level Designers & Analysts Professional Developers Power Users
Visual Studio 2008 Extensions • A set of Visual Studio development tools • Makes developing in SharePoint a more streamlined and quicker process. • Note: Does not work with an x64 OS • Use x86 development machine for SharePoint development • When targeting x64 OS, test on x64 • Download from Microsoft Download Center Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2 http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68
System Requirements • Operating Systems • Windows Server 2003, or • Windows Server 2008 • Windows SharePoint Services 3.0, or Microsoft Office SharePoint Server 2007 • Visual Studio 2008 • Standard Edition, or • Professional Edition, or • Team System
What's inside VSeWSS v1.2? • Visual Studio 2008 Project Templates • Web Part • Team Site Definition • Blank Site Definition • List Definition • Empty SharePoint Project • Visual Studio 2008 Item Templates (items that can be added into an existing project) Web Part • Custom Field • List Definition (with optional Event Receiver) • Content Type (with optional Event Receiver) • Module • List Instance • List Event Handler • Template
What's inside VSeWSS v1.2? • SharePoint Solution Generator • This stand-alone program generates a Site Definition project from an existing SharePoint site • The program enables developers to use the browser and Microsoft Office SharePoint Designer to customize the content of their sites before creating code by using Visual Studio
DEMO Project Templates
DEMO Creating and Deploying a Web Part
Create Partial trust Web Part • Create a new SharePoint WebPart Project. • Open the AssembyInfo.cs file and into it add the following code: using System.Security; and [assembly: AllowPartiallyTrustedCallers] • Switch to WSP View and open the manifest.xml file • Within the <Assembly> element find the line DeploymentTarget="GlobalAssemblyCache" • Replace it with DeploymentTarget="WebApplication". This causes the assembly to be deployed to the bin directory of the target SharePoint instance
SharePoint Solution Generator 2008 • Stand-alone application which converts a SharePoint site into a Visual Studio site definition project • It can then be compiled into a solution for deployment into a SharePoint farm. • Enables developers to use the browser and SharePoint Designer to customize the content of sites before extending this configured site by creating code in Visual Studio • Unsupported Content • Some site and list templates, such as Wiki Site, Publishing Site, and Portal Site • Lookup fields and custom field types • Some site settings and list settings
DEMO Using the SharePoint Solution Generator 2008
Creating Workflows • Templates available: • SharePoint 2007 Sequential Workflow • SharePoint 2007 State Machine Workflow
DEMO Creating Wrokflows
References • Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2 http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68 • Developing SharePoint 2007 Sequential and State Machine Workflows with Visual Studio 2008 http://msdn.microsoft.com/en-us/library/cc936631.aspx
Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form at: << Feedback URL – Ask your organizer for this in advance>> For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx Or email us at vtd@microsoft.com • Use the Question Manager on LiveMeeting to ask your questions now!
Contact • Email Address vedantk@microsoft.com