Rename the project folder in Visual Studio and Team Foundation Server

My Visual Studio 2013 solution has a Test project. I can rename it in Solution Explorer, but I also want to rename the project folder on disk, and also reflect the change in Source Control (TFS). How can i do this?

thanks

+5
source share
5 answers

@CodeCaster, thanks. Based on your advice, I did a little experiment and developed it. The first step is to rename the folder name to TFS; a new folder will appear in the local workspace, and all the contents of the folder will be moved to this new folder. The old folder remains there with the rest of the content that does not belong to the source control. You can delete it manually.


Or Use TFS Power Tools to rename from Explorer. Renaming TFS folder using TFS power tools

+2
source

I followed these steps to save the version history of files inside TFS:

  1. Rename / move the project file (.csproj) in the version control explorer to VS (alternatively, this also works from the VS Solution explorer, just select "rename")
  2. / VS
  3. VS,
  4. VS
  5. ( ) VS
  6. ,

, . , .

+1

, TFS.

tbl_Project Tfs_DefaultCollection, SQL Server, tfs. , , TFS Console, Application Tier, Data Tier Summary. , . , , ( ).

0

I encountered a similar problem when trying to rename a folder in Visual Studio 2015. This is what I tried.

  • Right click project file
  • Open with Notepad
  • This will create your current solution file.
  • Change the names of your previous file. (Find and replace the desired name)
  • Save and close
  • Change the name of the solution explorer and rename the folder to the name you need.

That should work.

0
source

All Articles