Had a nasty one today that had me scratching my head. On our TFS build server for one particular build it suddenly stopped when we executed tf.exe checkout commands with the error:
Unable to determine the workspace
I tried a few things but in the end it was down to the workspace cache so to resolve:
- Log in to the build server as the account running the Visual Studio Team Foundation Build service
- Shell out to a command prompt and make sure you can execute the tf.exe command (normally in %programfiles%\Microsoft Visual Studio 10.0\Common7\IDE )
- run tf workspaces /remove:*
- run tf workspaces /s:http://tfscontroller:8080 (performs a refresh)
Try the build again!
If it still fails then it's possible that the file you are trying to checkout is not actually part of the workspace in which the case the error message is actually right.
18a9bc64-b7f2-4120-82d5-af7d21213045|0|.0