无法在自定义构建过程模板中删除 TFS2010 的自定义工作流活动
我为 TFS 2010 创建了一个自定义工作流程活动来自定义程序集版本控制。我创建了该活动并使用测试工作流程和一些单元测试代码对其进行了测试。效果很好。但是,当我创建新的构建流程模板时,我无法将自定义活动拖放到工作流设计器上。当我将其拖动到要插入的位置时,鼠标光标会显示停止标志。
这是我所做的: - 创建新的构建过程模板(作为默认模板的副本) - 获取最新的新模板,这样我就有了它的本地副本。 - 查看新模板 - 在工作流程设计器中打开它 - 找到我要添加自定义活动的位置 - 在工具箱中,单击“选择项目...”并找到包含我的自定义活动的 dll - 在工具箱中找到活动并将其拖到工作流程中
将任何标准活动添加到构建过程工作流程中都可以正常工作。 我很困惑,我在这里错过了什么?
I've created a custom workflow activity for TFS 2010 to customize the assembly versioning. I've created the activity and tested it using a Testworkflow and some unit testing code. It works fine. When I create a new build process template however, I cannot drop the custom activity onto the workflow designer. When I drag it to the position I want to insert it, the mouse cursor shows me the stop-sign.
Here is what I did:
- Create new build process template (as a copy of the default template)
- Get latest for the new template, so I have a local copy of it.
- Check out the new template
- Open it in the workflow designer
- Locate the position where I want to add my custom activity
- In the toolbox, click Choose Items... and locate the dll that contains my custom activity
- Locate the activity in the toolbox and drag it onto the workflow
Adding any of the standard activities to the build process workflow works fine.
I'm puzzled, what am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我相信你必须将它放在一个了解你要从中添加自定义任务的 dll 的项目中。将自定义任务程序集放入 GAC 中是等效的,因为这允许 Visual Studio 拥有指向该程序集的活动链接,无论您在设计器中打开生成 xaml 时打开哪个项目(或没有项目)。
I believe you have to have it inside a project that knows about the dll you're trying to add your custom tasks from. Putting your custom tasks assembly into the GAC is equivalent because this allows Visual Studio to have an active link to that assembly regardless of what project (or no project) you have open when you have your build xaml open in the designer.
我知道这个问题不久前就有人问过,但我只想说两点……DLL 不必进入 GAC(你可以这样做,没问题),但你也可以将 DLL 复制到 Visual Studio 中
PublicAssemblies
文件夹:,然后将 DLL(从此位置)添加到 Visual Studio 中的工具箱中,然后将其拖到工作流程中,没有问题:)
I know this question was asked a while ago but just my two cents here... the DLL doesn't have to go in the GAC (you can do it that way, it's fine) but you can also copy the DLL into Visual Studio's
PublicAssemblies
folder:and then add the DLL (from this location) into your toolbox in Visual Studio and then drag it into the work flow no problems :)
我也有同样的问题。您必须 GAC 您的自定义活动:
http://social.msdn。 microsoft.com/Forums/en/tfsbuild/thread/73c4e1bf-e54b-4d6a-b0d3-896bbba96c83
问候,
符文。
I had the same problem. You have to GAC your custom activity:
http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/73c4e1bf-e54b-4d6a-b0d3-896bbba96c83
Regards,
Rune.