Windows Workflow Foundation not compiling 'CSharpValue' expressions

419 views Asked by At

I have a WWF activity workflow that is defined in a XAML file using the visual editor in VS2015. The workflow compiles to a .NET type which gets instantiated and passed into a WorkflowApplication instance. So in other words, the workflow isn't a dynamic activity, and the XAML isn't loaded at runtime.

The issue I am facing is that expressions aren't being built, which results in System.NotSupportedException: Expression Activity type 'CSharpValue1' requires compilation in order to run. Please ensure that the workflow has been compiled

I have checked, and the workflow's custom tool is set to MSBuild:Compile and the build action is set to XamlAppDef.

Related to this, but no solution.

Any ideas?

0

There are 0 answers