How to: Add a New Item to a Workflow Project (Legacy)
After you have created a workflow project using the legacy Windows Workflow Designer provided by Visual Studio 2010 that targets either the .NET Framework, Version 3.5 or the .NET Framework 3.0, you can add Windows Workflow Foundation (WF) items and other familiar Visual Studio items to your project.
The following table lists the Windows Workflow Foundation items that you can add to a workflow project.
Item | Description |
---|---|
Activity |
An activity with the activity definition in a designer code file and user code in a separate code file. |
Activity (with code separation) |
An activity definition expressed as workflow markup and user code in a separate code file. |
Sequential Workflow (code) |
A sequential workflow with the workflow definition in a designer code file and user code in a separate code file. |
Sequential Workflow (with code separation) |
A sequential workflow with the workflow definition expressed as workflow markup and user code in a separate code file. |
State Machine Workflow (code) |
A state machine workflow with the workflow definition in a designer code file and user code in a separate code file. |
State Machine Workflow (with code separation) |
A state machine workflow with the workflow definition expressed as workflow markup and user code in a separate code file. |
To add a new item to a workflow project
On the Project menu, click Add a New Item.
The Add a New Item dialog box opens.
Select an item.
The previous table lists the available Windows Workflow Foundation selections.
Click Add to add the item to the workflow project.