TFS workspaces with the same computer name

I have a tfs on visualstudio.com and I access it from my home and work using the same live.com login. These two computers are said to be the same (even the full paths to the solution folder are the same) and therefore the workspaces are said to be the same. Now when I try to do the latter, it never gets me, whether at home or work, because it probably thinks it already has all the latest files in it. Assuming my hypothesis is correct, is there a way to make these views different on tfs ?... The only way to get the latter for me is to get specifics and mark the second tick, but it also overrides my web.config file (this is not exactly the same since the connection strings are slightly different), which are understandably excluded from the project (not to be locked / modified as each user needs it differently for their own sql server connection string)

+3


source to share


1 answer


Workspaces are uniquely identified by their workspace name and username. However, TFS sends a list of "local" workspaces to each machine it uses based on its name. If you have two machines with the same name, then both workspaces will be listed as local to that machine, and Visual Studio will get confused and your workspaces corrupted. To fix this problem, you need to rename one of your computers.



You can get around this without renaming the computers by creating two workspaces with names like "home" and "work". However, you need to make sure you only use one at each location, as the crossover will give you the same problem as above.

+3


source







All Articles