GONeale
GONeale

Reputation: 26494

Can anybody find the TFS "Unshelve" option in Visual Studio 2012?

I can find the shelve button okay, and had shelved changes earlier today, but now I can't seem to find a way to unshelve them! This has left me in quite a predicament!

If this button is in fact missing in the Visual Studio 11 Beta, perhaps there is a console based TFS command I can execute to temporarily accomplish this?

Thanks all, I actually can't find an answer on Google for this either.

Upvotes: 145

Views: 38435

Answers (5)

Andrzej Martyna
Andrzej Martyna

Reputation: 475

Generally if you can't find an option among the thousands available in Visual Studio there is a very useful "Quick Launch" (Ctrl-Q) function. In this case if you type "shelve" it will show you where to find shelvesets.

Upvotes: 4

matrixanomaly
matrixanomaly

Reputation: 6947

Just like to add to Nock's answer that you can only see the unshelve option if you open a solution under source control.

You will not see the option if you open a blank solution, regardless if your Visual Studio workspace is connected to Team Foundation or not.

This is how it looks like if you tried unshelving a shelveset in a blank solution (with TFS connected to your Visual Studio workspace and source control all connected), where there isn't an option to unshelve from source control.

Blank Solution with TFS Connected

This is how it looks like with a solution under source control opened.

Unshelve option

Moral of the answer is to open any solution/project you may have that is under the source control which has the shelveset you want to unshelve.

Upvotes: 2

Greg
Greg

Reputation: 16680

I always used to right-click on the solution and choose "Unshelve". To add this functionality back:

  1. Click on the menu "Tools > Customize". This opens the "Customize" dialog.
  2. Select the "Commands" tab.
  3. Choose the "Context menu" radio button in the "Choose a menu or toolbar to rearrange" section.
  4. Choose "Project and Solution Context Menus | Solution | Source Control" from the drop down.
  5. Click the "Add Command" button. This opens the "Add Command" dialog.
  6. Choose "File" in the "Categories" list.
  7. Choose "TfsUnshelvePendingChanges" in the "Commands" list.
  8. Click the "OK" button to close the "Add Command" dialog.
  9. Use the "Move Down" button to place the new menu item in the proper place.
  10. Click the "Close" button to close the "Customize" dialog.

Upvotes: 10

Sylvain Rodrigue
Sylvain Rodrigue

Reputation: 4963

Also :

File > Source Control > Find > Find Shelvesets

Upvotes: 34

Nock
Nock

Reputation: 6609

Go to Team Explorer, then "Pending Changes", then "Actions", then "Find Shelvesets", then right click on the shelve you want to unshelve, finally "Unshelve".

Upvotes: 232

Related Questions