工作流程 4 设计器中的活动:特定程序集版本的依赖性错误?
我有以下 VS 2010 解决方案设置:
执行的应用程序项目引用一个仅包含工作流/.xaml 文件的项目 Libraries.Workflows。此 Libraries.Workflows 项目引用了一个 Libraries.Workflows.Activities 项目,该项目基本上包含所有自定义 wf 活动。
Libraries.Workflows.Activities 程序集使用 Libraries.CustomTypes 中定义的类型。该类型有一个在Libraries.SomethingElse 中定义的基类。
现在的问题是解决方案&项目编译&工作完全正常 - 但是,当打开 Libaries.Workflows 的工作流程时,该工作流程使用 Libraries.WorkFlows.Activities 中具有 In/OutArgument< 的活动之一/em> 在 Visual Studio 内的 WF 设计器中,显示错误,说明如下:
错误 3 编译器错误遇到处理表达式“要求”。 需要引用包含基类“Libraries.SomethingElse.Baseclass”的程序集“Libraries.SomethingElse,Version=1.0.3965.31164,Culture=neutral,PublicKeyToken=null”。添加一个到您的项目中。
现在,版本号“预期”随着每个构建而增加......就好像工作流程在某种程度上/某个地方有一个“强”(但错误)的引用。
有没有人遇到过类似的事情并且知道该怎么做?
I have the following VS 2010 solution setup:
The application project executed references an project Libraries.Workflows which contains only workflows / .xaml files. This Libraries.Workflows project references a Libraries.Workflows.Activities project which basically contains all custom wf activities.
The Libraries.Workflows.Activities assembly uses a type defined in Libraries.CustomTypes. This type has a base class defined in Libraries.SomethingElse.
Now the problem is that the solution & projects compile & work perfectly fine - however, when opening a workflow of Libaries.Workflows which uses one of the activities in Libraries.WorkFlows.Activities that have an In/OutArgument in the WF Designer within Visual studio, an error is shown stating the following:
Error 3 Compiler error(s) encountered processing expression "requirements".
Reference required to assembly 'Libraries.SomethingElse, Version=1.0.3965.31164, Culture=neutral, PublicKeyToken=null' containing the base class 'Libraries.SomethingElse.Baseclass'. Add one to your project.
Now the Version number 'expected' increments with each build... as if the workflow somehow/somewhere had a 'strong' (but wrong) reference.
Has anyone come across something like this before and knows what to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到原因(和解决方法): http ://social.msdn.microsoft.com/Forums/en/wfprerelease/thread/c2b2ef64-7cba-4eb0-a767-9ff83dafa5dd
显然这个问题应该在WF4的beta2中得到修复,但在RTM版本中仍然存在。
Found the cause (and workaround): http://social.msdn.microsoft.com/Forums/en/wfprerelease/thread/c2b2ef64-7cba-4eb0-a767-9ff83dafa5dd
Apparently this should have been fixed in beta2 of WF4 but is still there in the RTM version.