Is there any way to easily create a workspace, based on a pre-existing "template" one? ...or some other way of creating workspace on behalf of others?
相关问题
- Getting error: File extension specified '.webt
- Using TFS command line tf.exe how can I copy a rep
- TFS Power tools Migrate doesn't actually migra
- What is the difference between tfpt scorch and tfp
- TFS 2017 Agent: and error occured while sending th
相关文章
- Is it possible to do a “destroy history” in TFS?
- How do I make a TeamCity build appear in the TFS B
- TFS vs. JIRA/Bamboo/SVN [closed]
- Why doesn't my .tfignore file ignore my packag
- Is it possible to create a docker container from T
- How to Move TFS 2010 Build Definition between Proj
- How to fix TF246017 The Team foundation server cou
- How to open TFS Power Tools - Alerts Explorer
May start do anything with modifying this F# script:
You can also copy and paste the workspace mappings from one workspace into another.
You can also paste the mappings into Notepad, update them and, copy and paste them back into the workspace editor.
The format you'll see in notepad:
Example:
Depending on how much fine grained control you want over the process, I found this PowerShell script to be effective:
All the parameters that able to be defined are list in this MSDN article: http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.createworkspaceparameters.aspx One advantage of this method over tf.exe is that you can explicitly define the workspace location (i.e. server or local), and you have much more control over mappings that are defined at creation.
You should be able to just tweak the appropriate settings and dump this code into any *.ps1 file.
you can create a workspace using a command script using the tf workspace command. Then you can map work folders using the tf workfold command. The workspace command has a /template option
For example:
to create a workspace for someone
then create a new one based on the template
to map a folder: