Reputation: 3441
My Visual Studio 2013 solution has a project "Test". I can rename it in solution explorer, but I also want to rename the project folder in disk and also reflect the change in Source Control(TFS). How can I easily do this?
Thank you
Upvotes: 6
Views: 18433
Reputation: 3441
@CodeCaster, Thank you. Based on your advice, I have done some quick experiment, and worked it out. First step is rename the folder name in TFS; the new folder will appear in local workspace and all contents of the folder moved to this new folder. The old folder stays there with rest content which not belong to source control. You can delete it manually.
Or
Using TFS Power Tools to rename from Explorer.
Upvotes: 3
Reputation: 8404
I followed those steps to preserve the version history of the files inside of TFS:
Don't know of an easier way. Was searching for this myself, and this should be the way to go.
Upvotes: 1
Reputation: 143
I was facing a similar issue while trying to rename a folder in Visual Studio 2015.This is what I tried.
This should work.
Upvotes: 0
Reputation: 1827
I am using TFS 2015 Express and rename project is grayed out.
You can still rename the project using the TFS Site for the project.
Here is a link that shows how to do it.
https://www.visualstudio.com/en-us/docs/setup-admin/rename-team-project
Upvotes: 0
Reputation: 4209
I think you can rename it from the TFS Database.
Try going into tbl_Project
of the Tfs_DefaultCollection
Database, which you can find on the SQL Server Instance used by tfs. You can know which one is that by going into the TFS Console
, click on Application Tier
, then find the details of the Server under the Data Tier Summary
. Run an update query against the project you want to rename.. I haven't tested this but just assuming it should work (some educated guess)..
Upvotes: 0