Source Control - default working Path  
Author Message
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Hi!

Is there a way to set the default local working path

If someone opens the project, he has to set the working path, but I want to set a default path!

regards

Simon




Visual Studio Team System43  
 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Sort of. If you have a workspace you want other people to mimick, they
can create their workspaces using the command ‘tf workspace /new
<WSname> /template:<templateWS>;<username> /server:<server>’

 
 
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

But where can I define such a workspace template

regards

Simon



 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Any existing workspace can be used as a template.

 
 
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Ok thanks, I will try that.

regards

Simon



 
 
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Hi!

I cannot find, where I can select the existing workspace.

If I go to File --> Source Control--> "Open From Source Control" --> Select my Project, than I cannot set any other destination workspace !

regards

Simon



 
 
eugene.z





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

G'day,

You can view your workspaces using "File->Source Control->Workspaces..." or by selecting "Workspaces..." in Workspace combo box in Source Control Explorer.

When you perform "Open from Source Control", you need to select solution or project from source control tree, and from Workspace combo box in Destination one of the workspaces available.

I think the issue you might be having may be related to the fact that when you view TFS projects in "Open from Source Control" dialog (that is list in Look In is list of TFS projects and in combo box is selected TFS server root node), the workspaces combo is disabled. You need to select some path under TFS project - then combo box will become enabled.

Hope that helps.

Yours truly,



 
 
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Hi!

No that was not the problem, I wanted to set a default Local Path on the server .... but I think it is only possibly with the command tool !

regards

Simon



 
 
eugene.z





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

G'day,

I think you misunderstand the concept. In order to get files from source control to local folder, you need to specify source (source control path) and destination (local disk path). In TFS there is concept of workspace, which essentially entity that holds all such mappings for specific user and workstation.

Therefore, in order to define such mapping, you need to select (after creating one if needed) workspace, and specify server and local paths for mapping.

As far as I can see, you want the user to be able to open Visual Studio, and perform Open from SC so that default local path will already be specified, meaning that for specific user the mapping must be already set. That can be done by creating one workspace (with desired local path mapping for the project server path) for some user and then duplicating the workspace definitions (i.e. mappings) - that is creation workspace for another user at other workstation using existing workspace as a template (that's what Richard post details).

See "Working with Team Foundation Source Control" (especially, "Working with Source Control Workspaces" and "Getting a Local Copy of Files from the Source Control Server") for further information.

Hope that helps.

Yours truly,



 
 
Simon Gorski





PostPosted: Team Foundation Server - Version Control, Source Control - default working Path Top

Mhm, ok thanks a lot.

So I have to make a default namespace and copy that workspace.

See message from Richard Berg.

Thanks a lot!

Regards

Simon