Archive for the ‘Team Foundation Server’ Category.

Moving Source Files From One Team Project To Another

I have found that in recents months I have been doing quite a bit of house cleaning on our TFS environment, updated templates and what not. Well one thing we wanted to do was to create new projects and destroy the old, with out loosing any of the source history. The typical branching method would not work for this so we needed to use the command line utility tf.

First thing you will need to do is create your new project within TFS, and give it a new Source Repository ($/NewProject).

Next you will need to make sure that all the changes are checked-in and the locks removed from your old project ($/OldProject).

The you can simply open your visual studio command prompt from the start menu, and execute the following:

tf move $/OldProject/* $/NewProject

And all of your source code with history will be moved to your new project location.