AppCode Workspaces and TFS Command Line Client Tool

I can create a workspace with AppCode and successfully test and disable TFS. This is all good. But when I use the cross-platform command-line client for TFS and try to see these workspaces created by me using AppCode, I return β€œNo local workspaces”. AppCode does not actually create a workspace because, according to msdn, the name of the owner of the workspace and the name of the computer on which the workspace is used are stored in Team Foundation Server.

I have other applications that need access to this workspace created by AppCode. They can use the TFS command-line client tool to run TFS commands, but because of the reason I mentioned above, they do not see the workspace.

Any suggestions for syncing applications created by TFS workspaces and workspaces for AppCode so that all my applications can know about the same workspace? or any other suggestion? Thanks.

+4
source share
1 answer

I am not familiar with AppCode, but if it is something like IntelliJ (their Java IDE), then they wrote their own TFS integration. In this case, they probably did not update the cache files needed for tf to find its workspaces.

If so, you just need to run a command that will connect tf to your server - at that moment it will fill in the necessary cache files. For example, if you pass the -collection flag to tf workspaces , then it will actually request the server for a list of workspaces (and rebuild the necessary cache files in the process.)

I.e:

 tf workspaces 

It works only with the cache of the local workspace, and:

 tf workspaces -collection:http://tfs.contoso.com:8080/tfs/DefaultCollection 

Will connect to the server.

+3
source

Source: https://habr.com/ru/post/1436222/


All Articles