Visual Studio 2010 new C++ project from existing code
I want to modify an existing project but put all the source and header files etc. into a new directory 开发者_运维问答to keep them separate. When I use the "create new project from existing code" option, the solution files seem to point back to my original .cpp file which I don't want.
Q - what the best way to do this?
The Visual Studio projects are simple XML files that can be edited. Just bulk replacing the paths in your favorite text editor is probably the easiest way to go (I do that all the time).
create a new project, without opening the existing one. then copy all the header and the cpp files from the older folder to the new project folder. 'add existing item' will only point to the original file only.
精彩评论