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

Posted by Alan Mullett on Stack Overflow See other posts from Stack Overflow or by Alan Mullett
Published on 2010-03-04T15:20:09Z Indexed on 2010/04/05 15:23 UTC
Read the original article Hit count: 311

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 any 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?

© Stack Overflow or respective owner

Related posts about cruisecontrol.net

Related posts about visual-studio