Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Răspuns TF Workspace /new How to override the default WorkFold

  • 5 iulie 2012 01:27
     
      Are cod

    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 


Toate mesajele

  • 6 iulie 2012 07:17
    Moderator
     
     Răspuns

    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