Monday, May 3, 2010

Creating a new Team Build service with sc.exe and TeamBuildService.exe

At work we've been transitioning over to Team Build 2008 from Cruise Control.NET 1.5. It's not that we have anything against CC.NET, in fact it's quite an amazing and versitle program. We are simply going in the direction to have everything in the same software stack.

I do feel we will still use some CC.NET features from time to time and simply invoke the TFSBuild.exe instead. As a result, we will still get all our data pumped into the TFSBuild Store and no one will be the wiser.

There are two ways to run the TFSBuildService. The one is interactive (command line mode) and the other is as a service. To run this as a service, you have to use the sc.exe command.

I struggled for a couple hours until I found this post. Deep in there, you will see him mark out that after each = sign. There must be a space. Otherwise it will keep running the syntax options and you go insane trying to figure out what you are doing wrong.

Did this, worked perfectly.

Hope this helps your trouble shooting.

No comments:

Post a Comment