TFS / Visual Studio: Move the file to the solution without doing "add-remove"

We recently had to do some refactorings, meaning that we also moved some files.

So, in one branch, we changed everything. In the trunk, we continued to work fine, but it seems like it causes a lot of problems when merging, as the files look like they were deleted in the old position and are added to the new one, which makes the merge very difficult.

What is the correct way to work when moving a file in a solution?

+3


source to share


1 answer


If you move a file within a project that is "tied" to the original control, it should be recognized as a Move operation, not Add / Remove. If the project is not linked, it may not work correctly.

If you move files between projects, you need to unload the project / solution and move the files to the Source Control Explorer. This can be a little tedious as you can only move one file / folder at a time *. Then you need to reload projects and exclude files from old and include them in new.



* There is an extension that allows you to move more than one file using the TFS Source Explorer Extension .

+5


source







All Articles