Docstoc

Lab SharePoint

Document Sample
Lab SharePoint Powered By Docstoc
					SharePoint Developer
Getting Started with SharePoint Development
  What is SharePoint development?
  SharePoint as a platform enables you to create rich custom applications that meet
  the needs of your business. These applications can be further extended, both
  declaratively and programatically, to land SharePoint data in the Office
  applications. Below are links to content to help you better understand the
  SharePoint development platform.

  Developing applications for SharePoint
  Dig deeper into the tools and technologies for developing SharePoint applications
  and Office Business Applications (OBAs).

  Get the tools
  Getting SharePoint installed correctly can be a daunting task for developers new
  to SharePoint. There are a number of steps to get everything setup. You have a
  couple of options to get started. Here you will find the resources to help get you up
  and running in a development environment.

  Build your first application
  Using the SharePoint and Office training kits is the best way to explore capabilities
  and build your first application. These include hands-on labs, source code,
  presentation decks and the videos can be watched on the Channel 9 learning
  centers for SharePoint and Office.

  Continue learning
  Continuous learning is a part of the developer experience. Here you will find links
  to a host of resources to help you with your development on Office and SharePoint
  as a platform.
CONTENTS

1. WHAT IS SHAREPOINT DEVELOPMENT?............................................................................................ 4

2. DEVELOPING APPLICATIONS FOR SHAREPOINT ............................................................................. 5

3. GET THE TOOLS ..................................................................................................................................... 6

4. BUILD YOUR FIRST APPLICATION ....................................................................................................... 7

5. CONTINUE LEARNING ............................................................................................................................ 7

SHAREPOINT EASY SETUP SCRIPT ...................................................................................................... 11
       Overview ............................................................................................................................................. 11
       Task 1: Setup ....................................................................................................................................... 12
       Task 2: Running ................................................................................................................................... 14
       Script and File Reference .................................................................................................................... 15
       Script Installation Flow........................................................................................................................ 16

SUMMARY .................................................................................................................................................. 18
1. What is SharePoint development?
Microsoft SharePoint 2010 makes it easier for people to work together. Using SharePoint 2010, your
people can set up Web sites to share information with others, manage documents from start to finish,
and publish reports to help everyone make better decisions. You can think about SharePoint as a strong
collaboration application that contains a lot of out of the box functionality; but the real power of
SharePoint comes from those applications that can be built of top of SharePoint. SharePoint as a
platform enables you to create rich custom applications that meet the needs of your business. And
these applications can be further extended, both declaratively and programatically, to land SharePoint
data in the Office applications. Let’s take a look at some links to understand the SharePoint
development platform.


Getting Started


SharePoint 2010 Evaluation Guide
The SharePoint 2010 developer evaluation guide is designed to give you an overview of the feature set
and extensibility points for Microsoft® SharePoint® 2010, and an understanding of how the professional
developer can use these features and extensibility points to create comprehensive solutions. The
ultimate goal of this guide is to provide a framework for an effective evaluation of SharePoint 2010 as a
solution creation platform. This guide begins with an overview of the types of solutions that you can
build by developing on the SharePoint platform. It then describes the developer tools for SharePoint
2010, new platform features, and solution deployment enhancements.
SharePoint 2010: Professional Developer Evaluation Guide and Walkthroughs



Business Productivity at its Best
This paper shows how two products, Microsoft® Office and Microsoft SharePoint®, contribute to the
powerful architectural design of the Microsoft Business Productivity Infrastructure (BPI). The BPI stack
approach suggests that only by thinking at a capability level (for example, “What do information workers
want to do?”), and then adding the right aspects of capability in each place (client, server, and services),
can we create desktop applications that also deliver rich server and services capabilities to information
workers.
Business Productivity at its Best
What’s New in Office 2010 for Developers
The release of Microsoft Office 2010 offers a wealth of interesting, new scenarios and solutions that can
be built by developers, thanks to new features and improvements added to Office 2010 products and
technologies. Office 2010 offers powerful new ways to showcase your creativity while making it even
easier to create solutions that exceed your customer requirements. Designed to deliver the best
productivity experience across the PC, phone, and browser, Office 2010 helps you capture your ideas
creatively, work with other products and technologies more easily, and gives you the flexibility to meet
changing customer requirements. This article describes and illustrates a few of the new and improved
features and technologies in Office 2010 from the vantage of a developer. It contains links to a host of
other resource material as well.
What’s New in Office 2010 for Developers




2. Developing applications for SharePoint
Dig deeper into the tools and technologies for developing SharePoint applications and Office Business
Applications (OBAs).


Developer Tools

Microsoft Access 2010
Microsoft® Access® 2010 is all about simplicity, with ready-to-go templates that get you started and
powerful tools that stay relevant as your data grows. Access empowers you to make the most of your
information—even if you’re not a database expert—with few barriers and a small learning curve. With
seamless connections to variety of data sources, along with tools to help you collect your information,
collaboration happens the way it should. No expensive backend required.
Microsoft Access 2010



Microsoft InfoPath 2010
Microsoft® InfoPath® 2010 is a forms-creation and data-gathering tool that organizations can use to
streamline business processes. InfoPath 2010 is designed for both advanced business users and IT pros
and developers, depending on the type of forms-based solution a user or organization wants to create.
Users of all levels, however, can fill out forms.
Microsoft InfoPath 2010
SharePoint Designer
With SharePoint Designer 2010, you can build complete, rich, reusable, process-centric applications on
the SharePoint platform that integrate external data. Developers can use SharePoint Designer 2010 to
get a quick start on SharePoint development projects.
SharePoint Designer



Visual Studio 2010
SharePoint offers a Web-based collaboration platform. Visual Studio provides many project templates
for creating SharePoint sites and content, including list definitions, workflows, business data
connectivity models, and site definitions. In addition, you can create extensions for the SharePoint
projects and tools in Visual Studio.
Visual Studio 2010




3. Get the tools
Getting SharePoint installed correctly can be a daunting task for developers new to SharePoint. There
are a number of steps to get everything setup. You have a couple of options to get started. You can use
the SharePoint Easy Setup Script to install SharePoint locally or you can download a SharePoint Hyper-V
Virtual Machine.

SharePoint Easy Setup Script
The SharePoint Easy Setup Script automates the installation and provisioning of your SharePoint
developer environment. The script is easy to run with minimum interactions or decisions. This is great
for developers who want to get up to speed quickly. The SharePoint Easy Setup Script is also fully
documented and extensible, giving you the option to configure it to meet your exact needs.
SharePoint Easy Setup provides the following functionality:

       Unattended installs of SharePoint, its prerequisites and any applications needed for a
        SharePoint development environment
       Additional applications are defined with a configuration XML file so they can be modified to suit
        your needs

       Pre and post install scripts that can be customized to perform additional setup or configuration
To get started open the Source folder and execute the Run.bat command to begin the setup. See below
for detailed information about Easy Setup Script.
SharePoint 2010 VHD Demo Environment
One of the easiest ways to get started is to use the fully configured Virtual Machines that are available
on MSDN for download. This has a few drawbacks such as download size, hardware requirements such
as Windows Server, Hyper-V and 8GB or RAM. If you have the resources, this is a very good option for
professional developers.
SharePoint 2010 VHD Demo Environment




4. Build your first application
Using the SharePoint and Office training kits is the best way to explore capabilities and build your first
application. Once your developer environment is in place, download and install the training kits. These
include hands-on labs, source code, presentation decks and the videos can be watched on the Channel 9
learning centers for SharePoint and Office.


Download the Training Kits
The training kits can be downloaded from Microsoft Download Center:
SharePoint 2010 Developer Training Kit
Office 2010 Developer Training Kit




5. Continue learning
Continuous learning is a part of the developer experience. Here you will find links to a host of resources
to help you with your development on Office and SharePoint as a platform.


SharePoint Training


SharePoint Training Portal
Microsoft SharePoint 2010 is the business collaboration platform for enterprises and the web. It enables
you to connect and empower people through an integrated set of rich features. Explore the wide range
of Microsoft SharePoint 2010 training available from Microsoft Learning. These resources can help you
improve your technology and job-role skills and help you earn certifications that are highly valued by
employers.
http://www.microsoft.com/learning/en/us/training/sharepoint.aspx



SharePoint 2010 End-User Training
ShowMe for SharePoint 2010 is a solution that includes on-demand video training as context-sensitive
help in SharePoint 2010 and SharePoint Online. To put it simply, we provide 'how-to' help to your users
when they need it! Our expert-led, how-to videos are displayed in an engaging Silverlight user interface
via context-sensitive ribbon controls.What's more, the actual words spoken in each video are indexed
and can be searched for in the built-in SharePoint 2010 interfaces.
http://www.point8020.com/SharePointEndUserTraining.aspx



Get Started Developing on SharePoint 2010
Software developers can use the SharePoint 2010 business collaboration platform to build enterprise-
class solutions for intranet portals and the web. Use these ten modules to get started with development
for SharePoint 2010 using Visual Studio 2010.
Get Started Developing on SharePoint 2010



Advanced SharePoint 2010 Developer Training Course
SharePoint 2010 provides the business collaboration platform for developers to rapidly build solutions
using familiar tools while leveraging a rich set of out of the box features. Visual Studio 2010 and
SharePoint Designer 2010 make developers more productive and Visual Studio Team Foundation Server
delivers support for application lifecycle management. Developers can integrate Line of Business data in
SharePoint 2010 with read/write capability delivered by Business Connectivity Services. Sandboxed
Solutions can be deployed to a shared hosting environment to limit the impact of unpredictable code to
the other applications in use.
Advanced SharePoint 2010 Developer Training Course




SharePoint Community
SharePoint Team blog
The SharePoint Team blog is about Microsoft SharePoint Products and Technologies, which improve
team and organization effectiveness by providing scalable collaborative work spaces, easily deployable
and manageable infrastructure, and extensible application platform as well as a unified suite of
enterprise-scale applications that satisfies diverse business-critical needs, such as managing content and
business forms, simplifying how people work together across boundaries, and enabling better informed
decision-making.
http://blogs.msdn.com/b/sharepoint/



Alltop SharePoint Blog aggregation
This is a one stop shop for all of the top SharePoint blogs out there. At a glance, you can get a pulse on
what is happening in the SharePoint community.
http://sharepoint.alltop.com/



Forum: SharePoint Development with Visual Studio
Discuss building portal applications using Visual Studio and SharePoint
SharePoint Development with Visual Studio



Forum: SharePoint 2010
General questions, comments and discussions on SharePoint 2010 products and SharePoint services
such as Access Services, BCS, Excel Services and Visio Services.
http://social.technet.microsoft.com/Forums/en-US/category/sharepoint2010



SharePoint 2010 Usenet Groups
Worldwide distributed Internet discussion of various SharePoint 2010 topics.
SharePoint 2010 Usenet Groups




Office Resources and Training
Office Developer Center on MSDN
The Office Developer Center on MSDN is a key resource for Office developers with a host of articles,
how to videos and links to blogs, communities, forums and other resources.
http://msdn.microsoft.com/office
Additionally, most of the Office applications have their individual developer center for a more focused
set of content.
http://msdn.microsoft.com/en-us/office/aa905369.aspx



Office VBA Developer Center
Microsoft Office applications offer a very rich set of features, and provide many different ways to
author, format, and do things with documents, email, databases, spreadsheets, and presentations.
These features are extensible, meaning that the operations that you perform using the mouse,
keyboard, and dialogs can also be performed by simple Visual Basic for Applications (VBA) code scripts.
You can create VBA code scripts behind Office applications or behind documents. You can write code
from scratch, or you can set applications such as Word or Excel to record your mouse-clicks and
generate the code for you. Using VBA you can create code that automates repetitive tasks and simplifies
a complex series of clicks and keystrokes.
http://msdn.microsoft.com/en-us/office/ff688774.aspx



Office Development with Visual Studio Developer Center
Office development with Visual Studio 2010 opens significant opportunities to build rich Office Business
Applications (OBAs) that scale and can be deployed as integrated solutions across an enterprise. This is a
valued resource for developers that use Visual Studio for their Office solution development.
http://msdn.microsoft.com/vsto



Advanced Office 2010 Developer Training Course
Office 2010 is a broadly extensible platform for building Information Worker productivity solutions and
developing for Office with Visual Studio 2010 makes this easy. The Office 2010 Training Course includes
videos, presentations, hands-on labs and source code. This content is designed to help you get started
developing solutions, from Add-ins to full featured Office Business Applications (OBAs), using Visual
Studio 2010 with Office 2010 and SharePoint 2010 as the core platform.
Advanced Office 2010 Developer Training Course
Office Community


Office Engineering Team blog
The Office EngineeringTeam blog covers a broad spectrum of engineering around the Office suite of
applications. It also serves as the resource to links for each of the individual team blogs for the Office
applications.
http://blogs.technet.com/b/office2010/



Visual Studio Tools for Office Community
http://msdn.microsoft.com/en-us/vsto/dd164326.aspx



Office Developer Community
http://msdn.microsoft.com/en-us/office/aa905341.aspx




SharePoint Easy Setup Script
Overview
This readme document will show you how to use the SharePoint Easy Setup scripts to create your own
SharePoint development environment.


Key Features
SharePoint Easy Setup provides the following functionality:

       Unattended installs of SharePoint, its prerequisites and any applications needed for a
        SharePoint development environment
       Additional applications are defined with a configuration XML file so they can be modified to suit
        your needs
       Pre and post install scripts that can be customized to perform additional setup or configuration
System Requirements
You must have the following items to complete this lab:
       Microsoft Windows 7 Enterprise or Ultimate


Task 1: Setup
Before running SharePoint Easy Setup you may need to modify the config.xml file included with the
scripts. This file contains the configuration settings that define what to install as well as where to
retrieve the installation from.
XML
<config>
  <SharePointServer PidKey="BR68M-F6WK6-W6BVB-GXQGB-W67BG">
    <File friendlyName="SharePoint Server 2010"
url="http://download.microsoft.com/download/4/C/9/4C9AA003-7724-4175-88B5-
B390A8EA9648/SharePointServer.exe" estDownloadTime="00:10:00"
estInstallTime="00:30:00" />
  </SharePointServer>
  <Applications>
    <!-- Visual Studio 2010 Ultimate Trial -->
    <File friendlyName="Visual Studio 2010 Ultimate Trial"
url="http://download.microsoft.com/download/4/0/6/4067968E-5530-4A08-B8EC-
17D2B3F02C35/vs_ultimateweb.exe" installArgs="/q /full /norestart"
estDownloadTime="00:00:20" estInstallTime="01:10:00" />

    <!-- Silverlight 4 Tools for Visual Studio -->
    <File friendlyName="Silverlight 4 Tools for Visual Studio"
url="http://download.microsoft.com/download/A/E/E/AEE730DE-513A-44A4-B741-
97E43B409A53/Silverlight4_Tools.exe" installArgs="/q /norestart /log
[logDirPath]SilverTools4.htm" estDownloadTime="00:00:20" estInstallTime="00:10:00" />
  </Applications>
  <!-- Vhd node specifies details about Vhd to install sharepoint to
       setupPath (attribute) - where the vhd will live permentantly (must be a local
path)
       bootDesc (attribute) - the boot entry description of vhd -->
  <Vhd setupPath="q:\TestVhd\test1.vhd" bootDesc="SP Easy">
    <File path="\\server\q$\Vhd\Win7_Ultimate_x64.vhd" />
  </Vhd>
  <!-- full path of the directory to setup -->
  <Property name="setupDir" value="c:\SpEasy\Setup\" />
  <Property name="function" value="0" />
</config>



    1. FoundationServer node – defines the settings for a SharePoint Foundation server installation
                a. File node – defines where to retrieve a file from
                          i.   friendyName attribute –name of the product
                          ii. url attribute –URL to retrieve a file from
                          iii. path attribute –network or local path to retrieve a file from
                          iv. estDownloadTime – estimated time to download application
                          v. estInstallTime – estimated time to install application

                     Note: File nodes should either a have url or path attribute not both.



2. SharePointServer node – defines the settings for a SharePoint server install

     Note: Both FoundationServer and SharePointServer nodes cannot be defined in the file. If you
     want to switch from a SharePoint Foundation server setup to a SharePoint server setup,
     comment out the FoundationServer node and uncomment the SharePointServer node.



           a. PidKey attribute – the product key for the installation

             Note: FoundationServer may not have a PidKey attribute, as the trial version does not
             need a product key.



           b. File node – defines where to retrieve a file from
                          i.   friendyName attribute –name of the product
                          ii. url attribute – URL to retrieve a file from
                          iii. path attribute – network or local path to retrieve a file from
                          iv. estDownloadTime – estimated time to download application
                          v. estInstallTime – estimated time to install application
3. Applications node – defines the applications to be installed after SharePoint has been installed
           a. File node – defines where to retrieve a file from
                          i.   friendyName attribute –name of the product
                          ii. url attribute – URL to retrieve a file from
                          iii. path attribute – network or local path to retrieve a file from
                          iv. installArgs – command-line parameters to be passed to the installer
                          v. extractArgs – command-line parameters to be passed to the installer
                             to extract its contents
                               vi. extractDir– name of the folder to extract the contents of the installer
                                   to
                               vii. installCmd – file to use to install the application if the installer’s
                                    contents have been extracted
                               viii. installFunc – script function to call for special case installations
                               ix. PidKey – product key of the application
                               x. LogFile – the name of the installation log file
                               xi. Product – special key for Office application installations
                               xii. estDownloadTime – estimated time to download application
                               xiii. estInstallTime – estimated time to install application
    4. Vhd node – defines the settings for installations to VHDs
               a. setupPath attribute – the location where the VHD is to live on the local machine
                  [Note: this must be a local path (i.e. C:\example.vhd) and not a network path]

                  Note: The setupPath attribute must have a local path value (i.e. C:\example.vhd).



               b. bootDesc attribute – the description for the VHD’s in the boot entry
                               i.   File node – defines where to retrieve a file from
                                        a. url attribute – defines the url to retrieve a file from
                                        b. path attribute – defines the network or local path to retrieve
                                           a file from
    5. Property node – name/value pairs defining global settings
               a. Property[name=”setupDir”] – local path of directory to download/copy files to
               b. Property[name=”function”] – internally used to track the progress of the setup



Task 2: Running
This section will detail how to run SharePoint Easy Setup.

    1. Right-click on Run.bat and select Run as administrator
            a. You may be prompted, that the script will need to shut off UAC notifications to
               continue. If so press Enter and the script will shut these off and reboot the system.
               When the system finishes rebooting, repeat step 1.
    2. After the script finishes downloading/copying files to setup directory, you will be prompted
       whether you want to install on the current machine or create a VHD.
    3. If you want to install on the current machine, type H and press Enter
            a. You will immediately be prompted again to confirm that the machine is clean and you
               want to continue press Y and press Enter
            b. Continue to step 6
    4. If you want to create a new VHD to setup the environment on, type V and press Enter
            a. The script will copy the VHD to the setup location, copy the setup files to the VHD and
               add a boot entry for the VHD.
            b. After script finishes preparing the VHD, you will be prompted to restart your machine
               and select the VHD from the boot loader.
            c. After the VHD finishes starting, you may need to perform additional steps to complete
               the setup and configuration of the VHD. Be sure to install any required Windows
               updates as well.
            d. You may be prompted, that the script will need to shut off UAC notifications to
               continue. If so press Enter and the script will shut these off and reboot the system.
            e. After the system restarts, the script will resume.
    5. The setup script perform the following
            a. Run the pre-install script
            b. Install SharePoint prerequisite programs
            c. Install SharePoint
            d. Install applications
            e. Run the post-install script
    6. The setup script is completed


Known Issues
       Errors can occur while attaching and assigning a drive letter to VHDs. If this happens, you will
        be prompted to restart the machine. Re-run the application and script will continue.


Script and File Reference
SpEasy-Step1.ps1 –called by Run.bat. Contains the all functionality that occurs before the pre-install
script runs.

SpEasy-Step2.ps1 – called at the end of SpEasy-Step1.ps1. Contains the call to the pre-install script and
everything that occurs afterwards.
SpEasy-Api.ps1 – reference by both SpEasy-Step1.ps1 and SpEasy-Step2.ps1. Contains utility methods
used by both scripts.

SpEasy-PreInstall.ps1 – called by SpEasy-Step2.ps1. The pre-install script. Modify the script to add
functionality to be ran before SharePoint is installed.

SpEasy-PostInstall.ps1 – called by SpEasy-Step2.ps1. The post-install script. Modify the script to add
functionality to be ran just before the script finishes.

SpEasy-StartupServices.ps1 – called by Startup SP Services start menu item. Starts all SharePoint
services.

SpEasy-ShutdownServices.ps1 – called by Shutdown SP Services start menu item. Stops all SharePoint
services.

ShutOffUacShortcut.lnk – called by SpEasy-Step2.ps1 at the beginning of installation on a VHD. Calls
ShutOffUac.ps1 with administrator priviledges.

ShutOffUac.ps1 – called ShutOffUacShortcut.lnk. Turns off UAC notifications and reboots the system.

SpEasy Startup.lnk – added to the Windows startup for VHD installations. Automatically starts the
script. Calls Run.bat. Deleted when the script successfully completes.


Script Installation Flow
Summary

In this readme, you learned how to you are able to use SharePoint Easy Setup to create your own
development environment.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:51
posted:12/11/2011
language:English
pages:18