How do I change the local path of a subfolder in TFS (not the whole workspace)?

前端 未结 5 1064
感情败类
感情败类 2021-02-18 16:05

When I started working on a project I downloaded IPAddress\\CompanyName\\ProductName\\DevBranch in TFS, mapping it to C:\\DevBranch. But now I want to

相关标签:
5条回答
  • 2021-02-18 16:23

    I followed this steps on vs 2019

    1- Open Source Control Explorer

    2- Select your Directory that you want change local path.

    3- Right click on you selected directory and from "Advanced" menu select "Remove Mapping"

    4- You can see your current local path on local folder text box or you can change it, then press "Remove Mapping" button.

    5- After Map Removed, from "Advanced" menu select "Map to Local Folder".

    6-Select Local folder

    7-Click Map button

    0 讨论(0)
  • 2021-02-18 16:30

    There is the issue in Source Control explorer, there is a feedback: Manage Workspace Issues - Changing the Local Path of a Project.

    You can get the latest version by clicking Get Latest Version (your screenshot), then the files will be in the correct folder and the cache will be updated, then you will find the path is changed in Source Control explorer.

    0 讨论(0)
  • 2021-02-18 16:33

    about "You need to perform a "Get" on the whole TFS tree to update project associations", it also works if you make "Get" at the branch root level (whole TFS tree could be too much )

    0 讨论(0)
  • 2021-02-18 16:37

    If you want to change the local path for the working directory of the Team Foundation Server (TFS), you need to go to File -> Source Control -> Workspaces (File -> Source Control -> Advanced -> Workspaces for VS2017), then select your workspace (it should match your computer name) and click Edit.

    In the next dialog change the mapping for the root TFS node to the new location on your hard drive. You need to perform a "Get" on the whole TFS tree to update project associations.

    0 讨论(0)
  • 2021-02-18 16:48

    For VS2017 you can change local path from File -> Source Control -> Advanced -> Workspaces... In the manage workspace dialogue box, you need a select row of which contains your computer name, then edit it and change the local path.

    0 讨论(0)
提交回复
热议问题