Team Explorer Builds doesn't show build definitions, says "Item with the same key has already been added"
I recently migrated from Visual Studio 2010 to 2012 (version: 11.0.51106.01 Update 1). In Team Explorer -> Builds, I've added some build definitions for my favorites. Now when I open Team Explorer -> Builds, I don't see any build definitions, and instead I see an error:An item with the same key has already been added.
Why is this happening?
How can I solve this problem?
I suppose I could somehow remove these favorite assembly definitions, but where are they stored?
source to share
This appears to be a known issue with TFS2012.
Cause. ... If there are multiple built queues in a favorite assembly definition (for example, a gated and private assembly), VS2012 will create an empty favorite assembly and then throw this error when it reloads the favorites.
Correction: No AFAIK yet.
Workaround: Edit %LOCALAPPDATA%\Microsoft\Team Foundation\4.0\FavoritesStore\<GUID>.xml
:
- Workaround: remove the line
<FavoriteItem Name="" ...
. However VS2012 will create it again. - Permanent workaround: Remove relevant assembly definitions from favorites.
Some ( a blog post , connection error , Connection Error 2 ) propose to remove the TFS cache, but it did not work.
source to share