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
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