Task 1: Create the Custom Activity Project File
In this task, you create the project file that is used throughout the rest of this tutorial. The project file contains the necessary assembly references that most Windows Workflow Foundation applications require.
If you are using C#, give the project file a .csproj file name extension. If you are using Visual Basic, give it a .vbproj file name extension. As you progress through the tutorial, you edit this file to add new project files.
This task contains procedures for creating the files either using Visual Studio, or using a text editor with the standalone SDK.
To create the CustomActivity project in Visual Studio
In Visual Studio, click File, New, and then Project, If you want to create a C# project, select Visual C#, Windows and choose Windows Application and name the project CustomActivity. Click OK. If you want to create a Visual Basic project, select Visual Basic, Windows and name the project CustomActivity. Click OK.
In Solution Explorer, right-click References and click Add Reference. In the .NET tab, click each of the following and click OK to add them to the project:
System.Configuration
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.Design
System.Drawing.Design
System.Transactions
System.Web
System.Web.Services
Compiling the Code
For more information about compiling your code, see Compiling the Code.
In Task 2: Create the Custom Activity Host Application, you create the host application that is used in this tutorial.
See Also
Other Resources
Task 2: Create the Custom Activity Host Application
Tutorial: Create a Custom WF Activity
Custom Activities
Copyright © 2007 by Microsoft Corporation. All rights reserved.
Last Published: 2010-03-04