Loren Halvorson's Blog

If your only tool is a hammer...

Is anyone using NAnt with Team Foundation Server?

I was a little surprised that I couldn't find a NAnt task to do gets and checkins for MS Team Foundation Server. I found a couple places where someone talked about using NAnt's <exec> task to invoke tf.exe directly. And this SourceForge project named VSTSPlugins that promises some type of NAnt integration but hasn't released anything yet. Is there something out there and I'm just missing it? As an interim step before porting all of our builds to MSBuild, I'm interested in just switching our NAnt builds over to use TFS instead of VSS. Has anyone experimented with this?

Comments

Justin said:

I have been looking into the same thing without much luck either. I did run across the blog post below that has a link to the different commands for TFS. This should at least let me make the calls initially using the nant exec task.

http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/18/Team_System_Using_the_Console.aspx
# March 30, 2006 2:45 PM

Vasu said:

I looked around for the same info and found this info on a blog which you will find helpful:
http://blogs.msdn.com/manishagarwal/archive/2005/12/06/500440.aspx

If you are using TeamBuild, You can also pull the tasks from the task dll that installs with team build. Look at the Microsoft.TeamFoundation.Build.targets for more info on that.
# April 2, 2006 11:01 PM

Richard said:

CI Factory (www.cifactory.org/joomla) has a task library.

# May 16, 2007 12:18 PM

Billie said:

I've found msbuild to be not nearly as tested as nant as of yet.  it is taking shape still though.

# July 2, 2007 2:34 PM

TrueWill said:

I just managed to set up CruiseControl.NET with the TFS Plug-in:

www.codeplex.com/TFSCCNetPlugin

We're using CruiseControl to poll/get from TFS and then fire off NAnt.

# March 2, 2008 11:36 AM