Thursday, July 05, 2012 1:27 AM
TF Workspace How to override the default WorkFold
I am trying to create a new workspace using the below TF Workspace (Microsoft Visual Studio 10.0) command.
TF workspace /new WorkSpaceName /collection:TFSServer /noprompt
It works fine but the problem is, it adds a working folder by default, $ to my profile folder or the VSTS installation folder.
But using the UI, I was able to create a new Workspace without the default workfolder.
Can we use TF Workspace to just create a new workspace without adding the default work folder?
- Edited by r.muralidhar Thursday, July 05, 2012 1:28 AM removed sign
Friday, July 06, 2012 7:17 AMModerator
Thanks for your post!
If you use Tf workspace /new with /noprompt to create a new workspace, you cannot specify the working folder, you can just use the default working folder. However, you can map it use Tf Workfold command to creates or modifies the mappings between your workspace folders and the folders on the server for Team Foundation version control.
you create a workspace: TF workspace /new WorkSpaceName /collection:http://server:8080/tfs/defaultcollection /noprompt
then, you create the map for the working folder: tf workfold /map $/Project d:\project /collection:http://server:8080/tfs/defaultcollection /workspace:WorkSpaceName
For more information, you can refer to http://msdn.microsoft.com/en-us/library/0fa04bx6
Hope it helps!
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us