How do I get Visual Studio Team Foundation Server to see I moved code to a different folder?

后端 未结 4 1047
小鲜肉
小鲜肉 2021-02-13 14:00

I moved some code from my c drive to my d drive. When I opened the solution, it told me that:

The solution appears to be under source control, but its bindin

4条回答
  •  遥遥无期
    2021-02-13 14:49

    You will need to edit your Workspaces for TFS Server to know the change that has happened at your local machine. To edit your workspace, in Visual Studio:

    • ensure you have no pending changes; also copy your source code folder to some location temporarily, just to be safe (you can remove after you are all set)
    • go to Source Control Explorer
    • locate the "Workspace:" dropdown
    • select the item "Workspaces" from the dropdown list (you will get a dialog titled "Manage Workspaces"
    • if you have multiple Workspaces, select the appropriate one from the list in the dialog
    • click on "Edit" button (you will get an "Edit Workspace..." dialog)
    • down below in the dialog, you will see "Working folders" grid
    • click on appropriate row from the grid and modify the "Local folder" path to set to your new folder location

    Sometimes TFS and Visual Studio have issues in getting these workspace changes synchronized. I would always close Visual Studio and re-launch it to get my changes synchronized anytime after I make Workspace related changes.

    Hope this helps.

提交回复
热议问题