Unshelve to another branch

26,949

Solution 1

I found out where the problem.
I'm tried to use TFS Power Tools 2008 because we are using TFS 2008. But I should use TFS Power Tools the same version as the Visual Studio.

Solution 2

You can define your path in cmd with the TFPT. And then, from there, you go to the destination folder or workspace where you want to unshelve your code.

1. c:\>path = %path%;C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools

2. cd c:\[some location]\"destination workspace"

3. tfpt unshelve /migrate "NuGet Build" /source:"$/ProjectName/Main/Source" /target:"$/ProjectName/Main/Target-NuGet"

Here you have a video that explains this.

Link http://msdn.microsoft.com/en-us/vstudio/cc896548.aspx

Solution 3

I know this has been answered but for me the problem was easily solved by using Visual Studio command prompt instead of the default windows CMD. Most solutions out there just say "Open CMD..." which is probably where the problem lies.

The reason is windows CMD is aware of the power tools commands (e.g. tfpt) but not of the normal VS commands (e.g. tf).

Share:
26,949
Недоброе Привидение
Author by

Недоброе Привидение

Updated on March 06, 2020

Comments

  • Недоброе Привидение
    Недоброе Привидение about 4 years


    I'm trying to unpack my changes to the another branch using TFS Power Tools. I'm trying to execute command

    tfpt unshelve /migrate "NuGet Build" "/source:$/ProjectName/Main/Source" "/target:$/ProjectName/Main/Source-NuGet"
    

    But it returns message 'tfpt : Unable to determine the workspace'.

    I'm running command from the directory that mapped to this project. Moreover I've tried to use tf workspaces /s:http://our-tfs.

    Does anyone know how to solve this problem?

  • Недоброе Привидение
    Недоброе Привидение almost 11 years
    Thank you for your response, but it's not the solution of this problem.
  • paulroho
    paulroho about 10 years
    Hint: if you have to unshelve a shelveset from another user, mention the user domain name in the form "NuGet Build;theOtherUser"
  • AntonK
    AntonK almost 9 years
    Thanks. Worked for me.
  • jwrush
    jwrush over 7 years
    This was it for me, too tfpt has to be on the path.