Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

msbuild

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."

like image 354
Coppermill Avatar asked Nov 13 '12 09:11

Coppermill


People also ask

What is TF exe?

You can use version control commands to do nearly all tasks you can do in Visual Studio, and also several tasks that can't be done in Visual Studio. You can use the tf.exe tool to run version control commands from a command prompt or within a script.

How do I open the TF command line?

To do so, login to TFS as the administrator user. From the 'Start' button, select 'All programs' > MS VS 2010 > Visual Studio tools > Visual Studio > Command prompt. You can test a couple of tf.exe commands on this command prompt. Get a list of tf commands by just typing tf /? on the command prompt.


1 Answers

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" 
like image 53
rob Avatar answered Nov 09 '22 00:11

rob