tf.exe history * getting "Unable to determine the source control server."

msbuild, tfs

Solution

Had the same problem and tried all sorts of values for /collection, finally hit the right one and all TFS2012 tf commands started working again.

In Team Explorer in VS right click the server name and select properties, you need the entire URL parameter including http, the port number, everything. for me that was

http://devserver:8080/tfs/defaultcollection

so the command is just

tf workspaces /collection:"http://devserver:8080/tfs/defaultcollection"

Problem

We have just upgraded from TFS 2010 to TFS 2012 and we are getting problems with ``` tf.exe history * ``` getting the following error message Unable to determine the source control server.

Original source