I have several MS Visual C++ workspaces that I need to move to another
folder, i.e. I have some workspaces in subdirectories of D:\Prog1\Work, and
I need to transfer them to subdirectories of T:\Prog2\Demo. Doing this
turned out to be trickier than I thought.
Visual Studio has the "Save As..." menu item for individual files, but the
program provides nothing like "Save As..." for Projects or Workspaces. I
tried the brute force approach of simply copying the directories to the
destination, but the copied workspaces did not build, due to complaints
about the program database. I tried deleting the program database files (the
ones with the extension *.pdb and *.idb) in hopes that they would be
recreated by the build procedures. That didn't work, same complaint about
the program database. I opened the program database files and saw that they
did include the full path names for the various project sources. Moreover,
the program database files are binary, so one cannot simply edit the path
names without messing things up. (Yes, I tried it. No, it didn't work.)
At times like this, I envy the Gnu C++ folks. I cannot believe that there is
no simple way to do this! Is there some tool for moving Visual C++
workspaces? Is there some way to repair the program databases? Any help you
could provide would be much appreciated.