Team foundation server's automated build is not getting the latest code
tfs
Solution
There are several properties in your build definition you can check. I would start with setting the "Clean Workspace" to All to ensure the correct code is being pulled down and built.
There are other checks you can look at as well like the agent set for the build and the "GetVersion" property. Check the below link out. It should be able to help you in more detail.
Define a Build Process that is Based on the Default Template
Problem
I have setup a build controller etc and the builds were failing, I have fixed these now and the build failed properly - as in because of an error. I have fixed the error and checked the code back in but now the code is not being extracted, although sometimes one folder of many is. I have deleted the code from the build machine and requeued a build but it keeps failing. It complains that it cannot find the solution that I specified as the build solution. I have checked the check box to build even if nothing has changed. Have I missed a setting somewhere for extracting the code? TFS version is 2012 Express Visual Studio version is 2010 Professional