I develop workflows using .Net framework 4.5 (C#) and they are tested and working perfectly, unfortunately i have to downgrade .Net framework to 4.0, I know that xaml schema for WF has been changed in .Net 4.5
I search how to downgrade WF from .Net 4.5 to 4.0 but i cannot find anything that is helpful. I found this article but i cannot figure out what to do: WF projects that use new .NET 4.5 features fail to build when re-targeted to .NET Framework 4
Anyone know a well-known tested steps that i could follow to downgrade .Net framework to 4.0? or should I redevelop workflows again using .Net framework 4.0?
I did this a short while ago, and it is possible. Here's what I did:
TextExpression.NamespacesForImplementation
. Remove this element (and its child elements) from the XAML.TextExpression.ReferencesForImplementation
and its child elements.clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities
namespace. Remove that XML namespace. For me, the namespace was prefixed with mca.mca:
prefixed elements, as they are no longer valid in a .NET 4.0-based workflow. Typically these will be any C# expressions that activities could be written in. Also, most if not all of these would likely be resolved already by the actions done in step 2 above.