Share via


Writing Projects Targeting the .NET Framework 3.0 and 3.5 in Visual Studio 2010

This topic applies to Windows Workflow Foundation 4 (WF4).

You can use Visual Studio 2010 to create projects that target the .NET Framework version 3.0 or 3.5. This topic describes how to do this.

Note

When adding activities, make sure that the desired version of the .NET Framework is set. Changing the target version of the workflow after activities are added will cause the workflow to fail validation.

Ff729671.Warning(en-us,VS.100).gif Caution:
Opening existing workflows in Visual Studio 2010 that have .Net Framework 3.5 activities will cause an error at this.SetValue(). In order to open projects created with previous versions of the .Net Framework, first open a blank workflow in the designer and add a .Net Framework 3.5 activity.

To create a .NET Framework 3.0 or 3.5 project with Visual Studio 2010

  1. Open Visual Studio 2010.

  2. Select File, New, Project.

  3. In the drop-down list at the top of the dialog box, select the desired version of the .NET Framework.

To upgrade the targeted version of the .NET Framework

  1. Right-click the project in Solution Explorer, and select Properties.

  2. In the Target Framework drop-down list, select the desired version.