Why doesn't TFS get latest get the latest?

前端 未结 18 1135
陌清茗
陌清茗 2020-11-30 00:22

Why Why WHY doesn\'t TFS\'s get latest work consistently?

You would have thought that feature would have been tested thoroughly.

What I have to do is, get sp

相关标签:
18条回答
  • 2020-11-30 00:50

    Go with right click: Advanced > Get Specific Version. Select "Letest Version" and now, important, mark two checks:

    The checks are:
    Overwrite writeable files that are not checked

    Overwrite all files even if the local version matches the specified version

    0 讨论(0)
  • 2020-11-30 00:53

    WHen I run into this problem with it not getting latest and version mismatches I first do a "Get Specific Version" set it to changeset and put in 1. This will then remove all the files from your local workspace (for that project, folder, file, etc) and it will also have TFS update so that it knows you now have NO VERSION DOWNLOADED. You can then do a "Get Latest" and viola, you will actually have the latest

    0 讨论(0)
  • 2020-11-30 00:55

    Most of the issues I've seen with developers complaining that Get Latest doesn't do what they expect stem from the fact that they're performing a Get Latest from Solution Explorer rather than from Source Control Explorer. Solution Explorer only gets the files that are part of the solution and ignores anything that may be required by files within the solution, and therefore part of source control, whereas Source Control explorer compares your local workspace against the repository on the server to determine which files are needed.

    0 讨论(0)
  • 2020-11-30 00:56

    It might because you are login TFS as the same user, and the workspace name (based on machine name by default) is also the same, so TFS thinks your are on the same machine and same workspace, thus you already have the latest version of the files, so it wont get them for you.

    try rename your machine, and create a new workspace as a new machine.

    0 讨论(0)
  • 2020-11-30 00:56

    I had the same issue with Visual Studio 2012. No matter what I did, it didn't get the code from TFS source control.

    In my case, the cause was mappings a folder + subfolder from the source control separately but to the same tree in my local HD.

    The solution was removing the subfolder mapping using the "manage workspaces" window.

    0 讨论(0)
  • 2020-11-30 00:58

    It could happen when you use TFS from two different machines with the same account, if so you should compare to see changed files and check out them then get latest then undo pending changes to remove checkout

    0 讨论(0)
提交回复
热议问题