Compartir a través de


How to: Manually Configure a Workflow Project

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Visit the Microsoft Download Center to download the Windows SharePoint Services 3.0 Workflow Starter Kit, which includes custom workflow project templates. Follow the template instructions for installing the template on your computer.

To develop a custom Windows SharePoint Services 3.0 workflow in the Visual Studio 2005 Designer for Windows Workflow Foundation, you must add two references to your workflow project:

  • A reference to the Microsoft.SharePoint.dll to enable access to the Windows SharePoint Services 3.0 object model in your code.

  • A reference to the Microsoft.SharePoint.WorkflowActions.dll to enable access to predefined Windows SharePoint Services activities. In addition, you must place those activities in the Toolbox.

For more information about the Windows Workflow Foundation, including using the Visual Studio 2005 Designer for Windows Workflow Foundation to create workflow solutions, visit the Windows Workflow Foundation Developer Center.

To add the necessary references to the workflow project

  1. In Solution Explorer, right-click References, and then select Add Reference.

  2. On the Browse tab, navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi.

  3. Select Microsoft.SharePoint.dll and Microsoft.SharePoint.WorkflowActions.dll.

  4. Click OK.

To add workflow activities for Windows SharePoint Services to the Toolbox

  1. Right-click the Toolbox pane, and then click Choose Items.

  2. Click the Activities tab, and then click Browse. Browse to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\.

  3. Select the Microsoft.SharePoint.WorkflowActions.dll.

  4. Click OK.

In the Toolbox pane, you should now see activities specific to workflows in Windows SharePoint Services, such as OnWorkflowActivated and SendEmail.

Note

You can also get the Windows SharePoint Services workflow activities to appear in your Toolbox pane if you edit your workflow project so that the workflow derives from the SharePointSequentialWorkflowActivity class, rather than the default SequentialWorkflowActivity class. In your workflow code, change the following line of code: public sealed partial class Workflow1: SequentialWorkflowActivity To read: public sealed partial class Workflow1: SharePointSequentialWorkflowActivity

See Also

Concepts

Workflow Development for Windows SharePoint Services

Workflow Activities for Windows SharePoint Services Overview

Workflow Forms Overview