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."
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."
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"
Alternatively you can configure the connection only once directly in Visual Studio by adding it. After that, tf.exe will automatically use the correct server.
This solution worked for me using visual studio 2017.