Every time when I go to MSDN forum, I see some people asking why after they queue a new build in TFS 2010 and TFS build fails due to some errors. That’s because there are missing components in the Build Controller. The environment in the Build Controller is different from the one in your local machine.
The best way for you is to login to the Build Controller and validate if you can use MSBUILD to build the solution file successfully.
If the above simple MSBUILD command line has the error, whatever you queue a new build in TFS, TFS build will fail.
When you see the errors, you can copy the missing components from your local machine to Build Controller and try it again.