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

后端 未结 4 1046
小鲜肉
小鲜肉 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条回答
  •  梦毁少年i
    2021-02-13 14:42

    Generally speaking, the location of code on your machine is dependent upon where your workspace is located.

    If you move your workspace to the D: drive, then there shouldn't be an issue.

    However, if you simply used Explorer to copy the files to the new location, then VS isn't going to be able to maintain the bindings.

    From the Workspace Editor you can map the entire tree, solutions or even individual projects to a new location.

    1. First off, put it back and undo the changes.

    2. Then, Go to File | Source Control | Workspaces.

    3. Click on the work space name and then the "Edit..." button.

    4. In the working folders area select the source control folder you want to move and give it a new local folder location.

提交回复
热议问题