How do I create a new project in TFS from an existing project (breaking history)?

Posted by Lindsay on Stack Overflow See other posts from Stack Overflow or by Lindsay
Published on 2010-02-25T16:49:26Z Indexed on 2010/04/01 3:33 UTC
Read the original article Hit count: 277

Filed under:
|

My team is taking over a project from a previous team. We use a different TFS server than the original team, and we are also not interested in keeping the history of the project because we are accepting the latest version of the code as the beginning of our history with the project. Branching is not an option since we want to start our history from the current version of the code. We just want a fresh project with the existing code.

I have not been able to create the new project from the old code successfully. I keep getting an error: "Source control cannot add the solution: Solution would span multiple workspaces"

My process for attempting the new project creation:

  1. Create a workspace for the previous team's version of the code.
  2. Get latest version of that code into local mapped workspace directory
  3. Open the solution.
  4. Unbind all projects and solution.
  5. Close solution.
  6. Create a workspace for the new version of the code on our TFS server.
  7. Copy the unbound code on my local box to the new local workspace mapped folder.
  8. Open the solution from the new directory.
  9. "Add to source control" from the new solution.

Then I get the error. I have tried removing the TFS security files out of the code directories in the unbound version and tried changing source control instead of adding to source control (but it just binds back to the original instead of letting me bind to the new).

Is there any other way to do this besides recreating the solution/projects and adding back all the files and references? It doesn't seem like it should be this difficult...

Any advice much appreciated!

© Stack Overflow or respective owner

Related posts about tfs

Related posts about version-control