Adding existing solutions to TFS for Visual Studio Upgrades

Here's the situation:

  • A solution that builds in a prior version of VS
  • You want to port it to a new version of VS

Here's the sequence I like the best:

  1. Do a full rebuild of the solution from SC in the prior version of VS and confirm a successful build
  2. Create the target local root directory
  3. Update your target workspace definition to map the target SC root node to the target local root directory
  4. Copy the entire source structure in under the target local root
  5. Right-click on the local root and un-click the read-only properties for all sub folders and files
  6. Open VS and open the solution
  7. Execute the VS conversion to the new VS version
  8. Build the solution: if it fails, stop, go-back and figure out what went wrong. Once you get a successful build, go on to the next step
  9. In the new version of VS, go to file>source control>add solution to source control
  10. Once the initial add completes, do a full rebuild (before you check-in). If it fails, edit your workspace to make sure its correct and nothing has changed. Once you get a successful build, go on to the next step
  11. Close the solution in VS and re-open it from SC. Nothing new should be added to the solution at this point. Do another full rebuild
  12. Assuming all is working, check-in everything, close the solution and do a full rebuild

OK, so all should be good. What I like about this is that you don't have to add files directly in SC, which can be pretty iffy because you may not know which bins or exe's should be included or excluded.

This worked well for me going from 2008 to the 2010 CTP :)