Quark Soup
Quark Soup

Reputation: 4741

TFS get specific version of solution

Is there any trick to just get a specific version of just a solution? I have a large number of solutions and support libraries in the source code tree. I would prefer not to have to bring all of them down when I build a sandbox of a specific labelled version. In VS2015, I can open a specific solution, but is there a way to specify the label when I do this?

Upvotes: 0

Views: 7392

Answers (2)

Quark Soup
Quark Soup

Reputation: 4741

I think I have a solution with the suggestion from Tore. You can use the File/Source Control/Advanced/Open From Server... to load the latest version of a solution into your sandbox. Once you have the latest, you can use Tore's suggestion of Right Clicking on the solution then Source Control/Get Specific Version... to pull down the labelled version you want to work on. This appears to limit the file structure of the sandbox to just the files you need to build the solution.

Seems to work with the limited number of labelled version I have. Will update this post if I have trouble with more history in the vault.

Upvotes: 1

Tore Østergaard
Tore Østergaard

Reputation: 4602

It is not possible to choose the version of the solution when opening it.

You can however choose to get a specific version of the solution and its projects when getting the source code locally. You can do this by right clicking the solution folder in the Source Control Explorer and selecting Get Specific Version. Here you can select a specific version either by specifying a changeset, label or date.

Upvotes: 4

Related Questions