TF Workspace /new How to override the default WorkFold
-
5 iulie 2012 01:27
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?
Regards- Muralidhar
- Editat de r.muralidhar 5 iulie 2012 01:28 removed sign
Toate mesajele
-
6 iulie 2012 07:17Moderator
Hi Muralidhar,
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.
For example,
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!
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
- Editat de Cathy KongMicrosoft Contingent Staff, Moderator 9 iulie 2012 03:04
- Marcat ca răspuns de Cathy KongMicrosoft Contingent Staff, Moderator 12 iulie 2012 01:18