我使用VS2008
创建了一个继承自CompositeActivity的自定义worflow活动,如下所示public class CustomWorkflowActivity : System.Workflow.ComponentModel.CompositeActivity
我能够写下面没有任何问题
<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
x:Name="Advance_Loan_1"
xmlns:GS0="clr-namespace:WorkflowEngine.Engine;assembly=WorkflowEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
xmlns:GS1="clr-namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<GS1:People365SequenceActivity x:Name="Activity2" WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False"></GS1:People365SequenceActivity>
</GS0:People365WorkflowActivity>
将应用程序迁移到VS2010后,出现以下错误
非常感谢任何帮助。
答案 0 :(得分:3)
使用下面的文字:
<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
x:Name="Advance_Loan_1" xmlns:GS0="clr-
namespace:WorkflowEngine.Engine;assembly=WorkflowEngine,Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=d2bf1cbcd6bbcd82" xmlns:GS1="clr-
namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<GS0:People365WorkflowActivity.Activities>
<GS1:People365SequenceActivity x:Name="Activity2"
WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False">
</GS1:People365SequenceActivity>
</GS0:People365WorkflowActivity.Activities>
</GS0:People365WorkflowActivity>