VS 2012中未显示UI组件的自定义签入策略 [英] Custom checkin policy with UI component not shown in VS 2012
问题描述
我已经为VS 2012重建了我的签入策略,但是没有显示应该在Evaluate() - Override中打开的对话框。这似乎是一个线程问题。如何在VS 2012中的签入过程中集成我的自定义UI?
您好Herwig,
感谢您的帖子!
Evaluate()不应显示UI,如果出现任何问题,Evaluate()应该只创建失败。因此,您不应该在签入政策中显示用户界面。 他们非常谨慎地进行评估,并且经常足以让UI弹出非常烦人。
签入政策的概念是他们评估签到并在政策标签中提供消息。 然后,用户可以对策略选项卡中的条目进行操作,以与特定于签入策略的UI进行交互。
希望有所帮助!
最好的问候,
I have rebuild my checkin policy for VS 2012, but the dialog, which should open in Evaluate()-Override is not shown. It seems to be a threading problem. How can I integrate my custom UI in the checkin-process in VS 2012?
Hi Herwig,
Thanks for your post!
Evaluate() shouldn't display UI, Evaluate() should just create failures if there are any issues. So you shouldn’t ever show UI in a checkin policy. They care evaluated asynchronously and often enough that the UI popping up would be very annoying. The notion of checkin policies is that they evaluate a checkin and provide a message in the policy tab. The user can then act on the entry in the policy tab to interact with checkin policy specific UI.
For more information you can refer to http://social.msdn.microsoft.com/Forums/da-DK/tfsgeneral/thread/5e990d95-5514-4570-8efa-235ffbb89130
Hope it helps!
Best Regards,
这篇关于VS 2012中未显示UI组件的自定义签入策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!