I am currently working with two different TFS servers. When running tfs commands at the Visual Studio command prompt, how to determine which TFS server to work with. For example, tf status requires a TFS server parameter indicating which server should run the command. But, for example, for other commands, for example delete, how does he know which server performs the operation against?
Thanks in advance.
In general, the command line tools ( tf.exe, tfpt.exe) automatically determine the server based on the workspace to which the current directory is mapped.
tf.exe
tfpt.exe
, - , . (, tf edit), .
tf edit
:
/server:http://tfsserver:8080/
/collection:http://tfsserver:8080/tfs/Collection/
/collection witadmin.exe
/collection
witadmin.exe
, TFS , . , tf delete, TFS . , , , TFS , .
tf delete
It works by looking at the current location and then determining if there is a workspace in this place, if used. Otherwise, you must specify this by specifying the location of the server or local source.