Thursday, 7 February 2019

TFS 2012 Unshelve to different branch -> An item with the same key has already been added




 need help resolving the following issue:
I am attempting to unshelve code from the source branch onto a target branch.
I am using the following:
  • VS2012 RC
  • TFS 2012
  • VS2012 x64 Cross Tools Command Prompt
When I use the command prompt to perform the unshelve operation, the following occurs:
  1. Shelveset details dialog gets displayed with list of change files.
  2. Click Unshelve button.
  3. Observe command prompt output: "An item with the same key has already been added."
I have downloaded ServicePack1 for power tools. However, I have failed to resolve this issue.


Worked::: !!!!
Try to delete all the files in the following folder and restart VS2012 (Source):
C:\Users[USERNAME]\AppData\Local\Microsoft\Team Foundation\4.0\Cache