[英]Downgrading windows workflow from .Net 4.5 to 4.0
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我使用 .Net 框架 4.5 (C#) 开发工作流,它们经过测试并且运行良好,不幸的是我必须将 .Net 框架降级到 4.0,我知道 WF 的 xaml 架构已在 .Net 4.5 中更改
I search how to downgrade WF from .Net 4.5 to 4.0 but i cannot find anything that is helpful.我搜索了如何将 WF 从 .Net 4.5 降级到 4.0,但我找不到任何有用的东西。 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
我找到了这篇文章,但我不知道该怎么做: 重新定位到 .NET Framework 4 时,使用新 .NET 4.5 功能的 WF 项目无法构建
Anyone know a well-known tested steps that i could follow to downgrade .Net framework to 4.0?任何人都知道一个众所周知的测试步骤,我可以按照这些步骤将 .Net 框架降级到 4.0? or should I redevelop workflows again using .Net framework 4.0?
还是应该使用 .Net framework 4.0 重新开发工作流?
I did this a short while ago, and it is possible.我不久前这样做了,这是可能的。 Here's what I did:
这是我所做的:
TextExpression.NamespacesForImplementation
.TextExpression.NamespacesForImplementation
的元素中。 Remove this element (and its child elements) from the XAML.TextExpression.ReferencesForImplementation
and its child elements.TextExpression.ReferencesForImplementation
及其子元素。clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities
namespace.clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities
命名空间的行。 Remove that XML namespace.mca:
prefixed elements, as they are no longer valid in a .NET 4.0-based workflow.mca:
前缀元素,因为它们在基于 .NET 4.0 的工作流中不再有效。 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.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.