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."
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.
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.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With