开发者

Killing a program if it displays a dialog box (devenv.com running under CruiseControl.net)

开发者 https://www.devze.com 2022-12-22 02:23 出处:网络
I have CruiseControl.net running Visual Studio (2005/2008 - using devenv.com) as we need to build deployment projects (.vdproj).

I have CruiseControl.net running Visual Studio (2005/2008 - using devenv.com) as we need to build deployment projects (.vdproj).

At times, for various reasons devenv decides that even though it was run from the command line, using the devenv.com varient, it still wants to put up a dialog box.

Now, as it's running under CruiseControl.net on a remote server this is never seen and the only syptom of this is that the build eventually times out. When the build is still in progress a look at the tasks shows devenv running but not consuming an开发者_运维问答y processor power.

Is there a handy utility through which could run devenv.com which basically watches the program it starts up and basically kills it if it dares to display a dialog box of any kind?


WHat sort of dialogs is it putting up and why? You could write an application to dismiss dialogs but it's not easy - you'd need to use something like CBT Hooks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号