Hidden Gems in TFS–Part 6 Managing workspaces in TFS with Workspace templates

In this series of blog posts I like to highlight some features of TFS/Visual Studio that people seem to overlook. In my day to day job I often see that people don’t know about certain feature that are available in Team Foundation Server, Visual Studio or some of the Powertools.

Some features are available as a Powertool. These can be downloaded from here

Earlier Posts

In this part…….

Managing workspaces in TFS with Workspace templates

Another powertool feature and yet again widely unused by customers. Workspace templates. Often developers have their own way of organizing folders and files. Some people create different structures than others.

When working is a development team in 1 project, it is very useful to have the same structure on your local disk. In this manner you can use relative paths and make configuration a bit easier.

TFS provides you with the concept of workspace. In short, a workspace is a mapping of one or more local folder(s) to one or more source control folder(s).

workspace

Because you can flexibly create workspaces developers have a lot of freedom in structuring their projects.

With workspace templates you can provide your developers with a standard way of organizing their workspace. Your whole team uses the same structure and enjoys all the benefits.

How does this look?:

  • In Team Explorer right click on Team Members and choose Team Settings. If team members is not in your explorer install the powertools first
    image
  • On the general Tab create a new workspace template. Create mappings or import from an existing workspace. Watch the z:\{root} which indicates that people can still choose their root folder. Inside the folder it will contain the structure as you define in the templateimage
  • Save the template
  • As a team member you can now easily right click Team Members and choose Create Workspaceimage
  • Provide a root path on your own machine and voila. Structure is created automaticallyimage

    image

Have fun !

6 Responses to “Hidden Gems in TFS–Part 6 Managing workspaces in TFS with Workspace templates”

  1. Great post! Exaclty what we’ve been looking for here!

  2. Is this possible in 2012?

  3. Why is this not a standard feature, usable from the regular GUI? It is very useful…

  4. This is a great article. The link you’ve provided is for VS 2010. Here’s the link for VS 2013:
    https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f

%d bloggers like this: