Renaming the containing project folder in VS.net under TFS

前端 未结 6 1964
猫巷女王i
猫巷女王i 2020-12-04 07:02

I have a vs.net project, and after some refactoring, have modified the name of the project. How can I easily rename the underlying windows folder name to match this new pro

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 07:36

    Here are steps that worked for me in Visual Studio 2008 with TFS:

    1. Close solution.
    2. Rename project folders in Source Control Explorer (right-click -> rename). This duplicates code into newly named folders.
    3. Open the solution, and in Solution Explorer, remove the old folders/projects and add the new, properly named, duplicates, (on old projects, right-click -> remove, then on the solution, right-click->Add->Existing Project...)

    OR: After step 2, you can open the solution's .sln file in a text editor, and manually update the project folder names. If you do this, you might need to manually check-out the .sln file to be sure your changes will be checked in (<- important!).

提交回复
热议问题