在TFS 2012事件订阅中捕获对工作项所做的所有更改 [英] Catch all changes made to Work Items in TFS 2012 Event Subscriptions

查看:168
本文介绍了在TFS 2012事件订阅中捕获对工作项所做的所有更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以后是一种方法来捕获对我们新的TFS 2012服务器上存储的工作项中某些字段所做的所有更改,以便我可以通过其他逻辑(通过帮助台API处理更新)结果基于开发人员的变化。



我一直在努力一个多星期,Googling和阅读参考资料,但没有什么与TFS 2012有关



我尝试过以下设置:



开发和调试服务器端TFS 2010中的事件处理程序(GeeksWithBlogs)



还有许多其他可信的来源,没有运气。



我对一般建议不感兴趣,而是对这个问题的CONCRETE解决方案。
这可能是一种方法,但是我可以解决这个问题。



我推迟了这部分应用程序的开发,直到在最后期限附近,因为当第一次阅读时,它似乎是一件简单的事情。我想象我可以使用Microsoft.TeamFoundation.WorkItemTracking.Client库来完成这项工作,但是事实证明,客户端代码没有预定义的事件来订阅。 (或者我没有找到它)。
所以我想我需要创建一个自定义事件处理程序并将其安装到TFS上的插件目录中,如上述链接中所述,但是当我这样做时,我会在调试TFS时遇到异常,没有任何反应: / p>

  w3wp.exe中的0x000007FEFD90BCCD(KernelBase.dll)的首例机会异常
/ pre>

所以现在我已经超过了我的最后期限,在恐慌中搜索一个可行的解决方案,在采取一些手动方式定期循环并检查WorkItems就像我在应用程序的帮助台上的票一样。



如果我更了解活动和代表,我想我可以创建一个很好的解决方案,但我没有,我正在学习C#的过程,所以...

解决方案

我有一个类似的问题。通过执行以下步骤解决它
a)参考以下组合的11.0.0.0版本

  Microsoft.TeamFoundation.Client .dll 
Microsoft.TeamFoundation.Common.dll
Microsoft.TeamFoundation.Framework.Server.dll
Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Microsoft.TeamFoundation.WorkItemTracking.Server .DataAccessLayer.dll

b)将目标框架更改为.NET Framework 4


What I'm after is a way to catch all changes made to certain fields in the Work Items stored on our new TFS 2012 server, so that I can do other logic (processing the updates via a Help Desk API) with the results based on what is changed by the developers.

I've been struggling for over a week now, Googling and reading reference materials, but nothing works with TFS 2012 it seems.

I've tried the setup from:

Developing and debugging Server Side Event Handlers in TFS 2010 (GeeksWithBlogs)

And numerous other "trusted" sources, without luck.

I'm NOT interested in general advice, but a CONCRETE solution to this problem. It's probably more than one way to do this, but I'll settle for one that works.

I've delayed this part of the application development until near deadline, because when first reading up on it it seemed like a simple thing to do. I imagined I could just use the Microsoft.TeamFoundation.WorkItemTracking.Client libraries to do this work, but it turns out that there isn't a pre-defined Event to subscribe to from client code. (Or I haven't found it). So I guess I need to create a custom Event handler and install it to the Plugins directory on TFS, like described in the above mentioned link, but when I do this I get an exception while debugging TFS and nothing happens:

First-chance exception at 0x000007FEFD90BCCD (KernelBase.dll) in w3wp.exe

So now I'm over my deadline, searching in panic for a doable solution to this, before resorting to some manual way to periodically loop through and check the WorkItems like I had to do with the tickets on the Help Desk side of the application.

If I knew more about Events and Delegates, I guess I'd be able to create a good solution to this, but I don't, and I'm in the process of learning C# right now, so...

解决方案

I had a similar issue. Resolved it by performing the following steps a) Reference the 11.0.0.0 version of following assembplies

Microsoft.TeamFoundation.Client.dll
Microsoft.TeamFoundation.Common.dll
Microsoft.TeamFoundation.Framework.Server.dll
Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Microsoft.TeamFoundation.WorkItemTracking.Server.DataAccessLayer.dll

b) Changed target framework to .NET Framework 4

这篇关于在TFS 2012事件订阅中捕获对工作项所做的所有更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆