无法添加自定义活动到VS 2012的工作流程自定义、工作流程、VS

2023-09-05 00:46:24 作者:人生

我已经创建并内置在Visual Studio 2012工作流活动库项目,并创建了一个HelloWorld.xaml活动如下:

I've created and built a Workflow Activity Library project in Visual Studio 2012, and created a HelloWorld.xaml activity as follows:

pretty的基础,没有多余的装饰。不过,我似乎无法向此活动添加到我复制一个工作流模板。该活动显示在工具箱就好了,但是当我试图把它拖到设计师在适当的位置在图表上的鼠标光标变为标准的禁止圆圈上带有一个行的形象和活动ISN牛逼放置。

Pretty basic, no frills. However, I can't seem to add this activity to a workflow template that I've copied. The Activity shows up in the Toolbox just fine, but when I try to drag it into the designer in an appropriate spot on the diagram the mouse cursor changes to the standard "disallowed" circle-with-a-line image and the activity isn't placed.

时有什么我根本缺少在这里?我的理解是,在工具箱中的任何活动应该能拖&放;投进设计师。

Is there something I'm fundamentally missing here? My understanding is that any activity in the Toolbox should be able to be dragged & dropped into the designer.

推荐答案

请舒尔你有一个参考,你要添加到您的工作流程中的活动的项目。

Make shure you have a reference to the project of the activity you want to add to your workflow.