开发者

Visual Studio 2010 new C++ project from existing code

开发者 https://www.devze.com 2023-03-15 02:23 出处:网络
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\" opt

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消