TFS Auto Shelve for Visual Studio 2015 (and 2013, 2012) Extension

When I first saw this extension from Jason Vercellone I loved it and worried about it all in the same second.

It's like an uber-auto save, with the power of TFS, but I worried about polluting TFS with too many Shelfsets. Then I kept reading and saw the Jason already considered that!

Best part, the source is available too! :)

Visual Studio 2013, 2012 versions? TFS Auto Shelve for Visual Studio 2013, TFS Auto Shelve for Visual Studio 2012.

TFS Auto Shelve for Visual Studio 2015

Protect your code by guaranteeing your pending changes are always backed up to the TFS server.

image


What it does

  • Automatic Shelving shelves all your pending changes while you are coding
  • Manual Shelving shelves all your pending changes anytime with a single menu click or Ctrl-T hotkey
  • Uses one Shelveset per workspace to shelve all pending changes to the TFS Server (assuming you include {0} in the Shelveset Name)
  • Shelvesets are re-used to save the latest version of pending changes (unless the Shelveset Name is customized to include a date stamp {2})

vercellone/tfsautoshelve

Protect your code by guaranteeing your pending changes are always backed up to the TFS server.

What it does
  • Automatic Shelving shelves all your pending changes while you are coding
  • Manual Shelving shelves all your pending changes anytime with a single menu click or Ctrl-T hotkey
  • Uses one Shelveset per workspace to shelve all pending changes to the TFS Server (assuming you include {0} in the Shelveset Name)
  • Shelvesets are re-used to save the latest version of pending changes (unless the Shelveset Name is customized to include a date stamp {2})
Functionality
  • Automatic Shelving
    • Begins when any solution is opened in Visual Studio
      • Team Menu allows you to turn on/off automatic shelving
        • Team Menu -> TFS Auto Shelve (Running)
        • Team Menu -> TFS Auto Shelve (Not Running)
  • Manual Shelving
    • Can be triggered any time as long as you are connected to TFS
      • Team Menu -> TFS Auto Shelve Now
  • Options
    • Tools Menu -> Options -> TFS Auto Shelve Options
      • PauseWhileDebugging - New in v4.0: When enabled, shelving will not occur while debugging and will shelve immediately on return to design mode
      • Interval - The interval (in minutes) which automatic shelving will occur
      • Shelveset Name - string.Format input expression for deriving the unique Shelveset name. By default it is "Auto-{0}" where {0}=WorkspaceInfo.Name, {1}=WorkspaceInfo.OwnerName, {2}=DateTime.Now, {3}=Domain of WorkspaceInfo.OwnerName, {4}=UserName of WorkspaceInfo.OwnerName. WARNING: If you are upgrading be warned that if your Shelveset name does not include {0} and you use multiple workspaces then only 1 workspace's changes will be saved.
      • _Maximum Shelvesets _- New in v3.3: Maximum number of Shelvesets to retain. Older Shelvesets will be deleted. Note: ShelvesetName must include a {2}(DateTime.Now component) unique enough to generate more than the maximum for this to have any impact. If {0} (WorkspaceInfo.Name) is included, then the max is applied per workspace. Note: The ShelvesetName expression supports Composite Formatting. For example, {2:hh} if you want to include just a 2 digit hour in the name. Or, {2:yyyyMMdd} for a sortable date value.
Helpful Info
  • To view Shelvesets, open Source Control Explorer, click on:
    • File > Source Control > Unshelve Pending Changes
  • Workspaces can be modified by:
    • Opening the Source Control Explorer > Clicking on Workspaces drop down > Click Workspaces > Click Add/Edit/Remove
  • Custom Visual Studio Activity Logging is implemented. If you run into any errors, please startup Visual Studio with the /log switch, re-create the error, then close Visual Studio. You can browse to "%AppData%\Microsoft\VisualStudio\14.0\ActivityLog.XML" to view the log.

Tags:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.