I've read many articles and posts about executing NAnt scripts using TFS build, none of which have satisfied my needs.

I have a NAnt script that has been developed over the years to automatically build, test and deploy our websites to an internal staging and external demo environments.

Usually, the team has been so small that builds have been a manual process. The intention had always been to integrate this script into a CI environment.

Recently, we switched our source control to TFS 2012 with the aim of using TFS build with our existing NAnt script. 

From what I can see so far, it is possible to execute a NAnt script with TFS build, but it is not possible to not specify a .sln file for TFS build to build first when creating a new build definition.

Ideally, I want NAnt to control the entire build/test/deploy process and for TFS Build to just butt out and just utilise the Checkin triggers TFS provides to trigger the NAnt build.

I've played with the idea of writing my own TFS checkin interceptor. Has anyone else solved this problem already?

Many thanks

Could anyone answering please stick the specific question being asked and not deviate by suggesting alternate (paid for or not) CI tools such as CCNet or TeamCity.

Cheers