Is there workaround for when TFPT is “unable to determine the workspace” and refreshing the cache does not work?

后端 未结 6 1949
长发绾君心
长发绾君心 2021-02-12 09:49

I\'m having trouble getting TFPT.exe to work at all, even after trying to refresh the cached workspace settings per the usual advice on the internet. See below for a log repres

6条回答
  •  醉梦人生
    2021-02-12 10:12

    In my case, here is how I arrived to this problem (error message "Unable to determine the workspace"), and how I solved it.

    Arrival:

    I had some code. The development moved from the branch in which I worked (lets call it Branch1) to Branch2. I had to continue under Branch2. I shelved the changes, re-mapped my development folder to Branch2, opened Developer Command Prompt for VS2012 and ran the following command

    tfpt unshelve /migrate /source:"$/path/Branch1" /target:"$/path/Branch2" "Shelveset Name"

    Here I've got the "Unable..." message

    Solution:

    In my case, the problem was that when I opened command prompt, its working directory was c:\program files\...\...Visual Studio 11.... It worked (migrating shelveset) when I changed working directory to the directory of the Branch itself: c:\MyBranchFolder

提交回复
热议问题