Monthly Archives

5 Articles

Visual Studio Tips

Visual Studio – How to Find Shelvesets for a deleted user

Posted by matteskolin on

If a user is removed from the Team Foundation Server or TFVC online, and then another user needs to access a shelveset created by the removed user, finding this shelveset can be difficult.

Using the Find Shelvesets tool in Team Explorer requires you to enter the complete and full name of the shelveset or the complete and full name of the shelveset owner.

If the owner is no longer a member of the Team, or have been deleted from the Azure DevOps organization, curiously, the Find Shelvesets does not show the shelvesets associated with the deleted user..even though they certainly still exist within source control.

This is where the command line comes to the rescue..executing the following command will list the shelveset name for all owners for the project.. note the use of the asteriks(*) to specify all owners..

tf vc shelvesets /owner:*

This will return a list of ALL shelvesets, including shelvesets for the removed user. Once you have the shelveset name, you should be able to type the full name into the “Find Shelvesets” window in the Team Explorer, and find the shelveset that does not have a valid owner.

This whole thing seems like a bug which may get fixed at some point. I am using Visual Studio 2017 (15.9.4)

UPDATE: I discovered that you can use the ‘*’ in the shelveset search to find a list of all shelvesets…

Visual Studio Tips

How to Find Shelvesets in VS 2017 – TFVC

Posted by matteskolin on

I struggled for a minute or so today looking for a Shelveset in the VS Team Explorer. Eventually I had to open up the Source Control Explorer…

Turns out there is a simpler way.

The Key is to click on “Pending Changes”

I find this a little unintuitive, because I’m not looking for my “Pending Changes”. I’m looking for a shelveset that has already been created…

So I’m making this post to remind my self that “Pending Changes” is the home of more functionality that just checking pending changes in the local workspace…