Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I move and rename a project in both TFS & VS2012

I have a VS2012 project that I'd like to move to a different location in both TFS and the file system, then rename the project with then VS2012 solution. Importantly, I need to make sure that TFS stays in sync with my changes.

Any ideas how to so this would be greatly appreciated. Thanks...

like image 706
Louis S. Berman Avatar asked Oct 30 '12 18:10

Louis S. Berman


1 Answers

You need to use Source Control Explorer and locate your project. You should be able to right click on it and select Move. From there, select where you want it to go in source control.

You should be able to rename the project in Visual Studio by right clicking on the solution file and selecting rename.

A word of caution though - I would highly recommended making this a two step operation. Either rename the project, check in your change, then move it or vice versa. TFS can exhibit some strange behaviors on renames and I would never combine that with a move operation.

As far as changing the location in the file system, that is entirely up to you (unless I am misunderstanding you). Just map the project to a different location in your file system.

like image 198
Jonathan Nixon Avatar answered Oct 07 '22 14:10

Jonathan Nixon