DCSIMG
Using TFS workspace in order to achieve sharing between resources and relative code - SRL Group

SRL Group

This blog is about Team System, QA and Development methodologies and more...

VSTS Resources

Team System Bloggers

Using TFS workspace in order to achieve sharing between resources and relative code

In VSS, we could perform a Share which created a pointer in one folder back to a file or folder in another. In this way, file changes checked-in to either location would show up in the other. There is not comparable feature in TFS, so what developers can do when they need to share resources in TFS?
We used the workspace power. The workspace “is your client side copy of the files and folders on the source control server”.
A workspace is unique to a machine and user, but can contain any number of mappings from the server to the local computer.

When creating and designing the workspace we knew that:

  • A workspace can contain multiple server-to-local folder mappings.
  • A single workspace can contain mappings for one or more Team Project.

Let's implement a solution based on the SCM tree of my post VSTS Source Control tree structure which support Concurrent development & Versions management .

The solution:

  • Our tree has several team projects:
    • Shared - who contains 3rd party code/components and common code/infrastructure code between the development teams and a team project for every team.
    • Development teams team projects – every team has its own team project. Every team project (except the general) is reachable only for its owner development team.
  • Developer workspace: All developers’ workspaces mapped to:
    • The teams’ project code - the depth of the mappings is equal for all developers in order to support relative paths and file references.  We achieve in this design compilation of the code and unbroken references.
    • Common code from the general Team Project in order to share code between teams.

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: