William Bartholomew, former VSTS MVP and author of the book Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build, recently joined Microsoft.  He's written a great post on the handful of steps you need to follow if you want to build .NET 4.0 applications with TFS 2008:  Building .NET 4.0 Applications Using Team Build 2008.  Check it out!