Setting Up a Development Environment for Working with Duet Enterprise

Applies to: Duet Enterprise for Microsoft SharePoint and SAP Server 2.0 | Office 2010 | SharePoint Server 2010

In this article
Installing and Configuring SharePoint 2010
Deploying and Configuring Duet Enterprise on SharePoint Server 2010
Creating a Site Collection and Web Site for the Duet Sales Order Management Solution
Installing and Configuring Visual Studio for Developing SharePoint Solutions

To develop solutions for Duet Enterprise for Microsoft SharePoint and SAP, you need to set up a SharePoint development environment. Then you need either to deploy Duet Enterprise to a Microsoft SharePoint Server 2010 installation on your development machine or to obtain access to a SharePoint Server 2010 on which Duet Enterprise is installed and configured.

Note

This topic covers setting up an environment to develop solutions for Duet Enterprise using Microsoft tools such as Visual Studio 2010. For information about setting up and configuring development environments like ABAP Workbench in SAP NetWeaver, see the help content for ABAP development on the SAP Developer Network.

Installing and Configuring SharePoint 2010

To be able to use the SharePoint development tools in Visual Studio 2010, you must install Visual Studio and SharePoint Server on the same development machine. (See the topic Requirements for Developing SharePoint Solutions in the MSDN Library.) Keep in mind, however, that if you are developing SharePoint solutions in Visual Studio on a client operating system such as Windows 7 or Windows Vista (instead of on a server operating system like Windows Server 2008), such client operating systems are not supported as production environments for SharePoint Server. You can nevertheless install SharePoint Server on Windows 7 or Windows Vista (after making a change to the SharePoint setup configuration files) to develop solutions for SharePoint. Note that Duet Enterprise must be installed on SharePoint Server 2010 Enterprise and that the installation of any edition of SharePoint Server 2010 requires a 64-bit operating system and computer hardware to support a 64-bit operating system.

For a description of the options, the prerequisites, and the necessary preparations for installing SharePoint Server, as well as the details of the steps involved in an installation, see the topic Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008 in the MSDN Library. Be sure to install any necessary updates to your machine appropriate to your operating system as described in that topic. Pay particular attention to the steps related to configuring Internet Information Services (IIS) and to the change required in the SharePoint setup configuration files to be able to install SharePoint Server on client operating systems.

Note

For a Windows PowerShell script that installs and configures all of the prerequisites and products that you will need to get started with SharePoint Server 2010 development, see SharePoint 2010 Easy Setup Script.

Deploying and Configuring Duet Enterprise on SharePoint Server 2010

To develop solutions that take full advantage of Duet Enterprise features, you need to deploy Duet Enterprise to your system that is running SharePoint Server. Installing and configuring Duet Enterprise involves a number of steps that should be completed in a specific order. For information on the prerequisites and preparations for deploying and configuring Duet Enterprise, see the Duet Enterprise Deployment Guide in the Microsoft TechNet Library. As specified in the topic on importing the BDC models for Duet, before you import into SharePoint Server the models that are included in the Duet Enterprise installation, you need to update those models with the appropriate web service endpoint URLs based on your SAP configuration (or you need to have an SAP administrator update the models for you). To be able to create the SharePoint project items associated with the Sales Order Header and Sales Order Item external content types, you likewise need to update the models that define those types with the appropriate endpoint URLs. (For information about these models and the required modifications, see Data Models for the Duet Sales Order Management Solution later in this walkthrough.)

Creating a Site Collection and Web Site for the Duet Sales Order Management Solution

After following the steps to deploy and configure Duet Enterprise, you should have a site collection on your SharePoint Server that was created based on the Duet Enterprise Sites template. (See the section on using the Duet Enterprise Sites template to create a site collection in the topic on configuring Starter Services in Duet Enterprise.) In preparation for developing the Duet Sales Order Management solution, you can create a Web site within your Duet site collection to which you will deploy your solution. You can deploy your solution to the top-level site in your Duet site collection, but deploying, managing, and tracking changes to your solution is easier if you deploy it to a dedicated subsite within your Duet site collection.

To create a site for the Duet Sales Order Management solution

  1. Navigate to the site (collection) you created based on the Duet Enterprise Sites template.

  2. Click the Site Actions menu on the Ribbon, and click New Site.

  3. In the Create dialog box, select the Blank Site template. In the right pane, click More Options.

  4. Specify a title (for example, "Duet Sales Order Management") and, optionally, a description for the site.

  5. Specify a URL name for the site (for example, "DuetSalesOrders"). This URL name is part of the full URL that you will use as the value for the Site URL property of your Duet Sales Order Management solution. Depending on your server name, a port number (such as 1970), and the name of the Duet Enterprise site collection you created, the full URL for a subsite with a URL name of "DuetSalesOrders" would be something like the following:

    http://yourservername:1970/sites/YourDuetSiteCollection/DuetSalesOrders/

  6. Indicate whether you want to use the top link bar from the parent site and then click Create.

Installing and Configuring Visual Studio for Developing SharePoint Solutions

The Duet Sales Order Management solution was developed by using Visual Studio 2010. To follow the procedures involved in the development of the solution in the course of this walkthrough, you need to install Visual Studio 2010 on the same computer where you have installed SharePoint Server. (For more information about how to install Visual Studio, see Installing Visual Studio.)

As noted in Requirements for Developing SharePoint Solutions, SharePoint projects in Visual Studio support only version 3.5 of the Microsoft .NET Framework. For projects other than SharePoint projects, Visual Studio 2010 sets the target .NET Framework to version 4 by default. When you create a SharePoint project, even if you select .NET Framework 4 as the target for your solution, it will be set by Visual Studio to target version 3.5. You should also ensure that, for SharePoint solutions, the target platform in the Build properties of your solution is set to "Any CPU" or, if appropriate for your environment, "x64". (By default, this property for SharePoint solutions in Visual Studio 2010 is set to "Any CPU". See the topic How to: Set the Correct Target Framework and CPU in the MSDN Library for additional information.)

See Also

Other Resources

Requirements for Developing SharePoint Solutions

Hardware and software requirements (SharePoint Server 2010)