Why doesn't TFS get latest get the latest?

前端 未结 18 1172
陌清茗
陌清茗 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:41

    Sometimes Get specific version even checking both checkboxes won't get you the latest file. You've probably made a change to a file, and want to undo those changes by re-getting the latest version. Well... that's what Undo pending changes is for and not the purpose of Get specific version.

    If in doubt:

    • undo pending check in on the file(s)
    • do a compare afterwards to make sure your file matches the expected version
    • run a recursive 'compare' on your whole project afterwards to see what else is different
    • keep an eye on pending changes window and sometimes you may need to check 'take server version' to resolve an incompatible pending change

    And this one's my favorite that I just discovered :

    • keep an eye out in the the Output window for messages such as this :

      Warning - Unable to refresh R:\TFS-PROJECTS\www.example.com\ExampleMVC\Example MVC\Example MVC.csproj because you have a pending edit.

    This critical message appears in the output window. No other notifications! Nothing in pending changes and no other dialog message telling you that the file you just requested explicitly was not retrieved! And yes - you resolve this by just running Undo pending changes and getting the file.

提交回复
热议问题