27
Mar 14

UnsupportedProjectType for the CompileWorkflowTask task cannot be found

Got the error below after adding a .xaml file to my project.

Fix: Right-click on the .xaml file, select properties and change the Build Action to content.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Workflow.targets(121,5): error MSB4018: The "CompileWorkflowTask" task failed unexpectedly.  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Workflow.targets(121,5): error MSB4018: System.ArgumentException: The resource string "UnsupportedProjectType" for the "CompileWorkflowTask" task cannot be found. Confirm that the resource name "UnsupportedProjectType" is correctly spelled, and the resource exists in the task's assembly.