Cloning Projects
-
Using Visual Studio 2005 with Client and Server projects, I would now like to clone the client project several times - all within the same solution. This is to keep all the include/libs and other project setting the same. In the past I just added a new project and copied the code in and redone all the other project settings. Are they another way to do this. Renaming just causes problems Many thanks, Andy.
-
Using Visual Studio 2005 with Client and Server projects, I would now like to clone the client project several times - all within the same solution. This is to keep all the include/libs and other project setting the same. In the past I just added a new project and copied the code in and redone all the other project settings. Are they another way to do this. Renaming just causes problems Many thanks, Andy.
Andy202 wrote:
Renaming just causes problems
I personally just copy the project (.prj) file (using Windows Explorer), rename it, open the file in a text editor, and do all the renaming there (the project file is XML). Then the new project can be added to a solution in the IDE, where the project files from the cloned project can be removed. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Andy202 wrote:
Renaming just causes problems
I personally just copy the project (.prj) file (using Windows Explorer), rename it, open the file in a text editor, and do all the renaming there (the project file is XML). Then the new project can be added to a solution in the IDE, where the project files from the cloned project can be removed. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hey Mark, what's the context for this need? Why do I need a cloned project in the same solution? Or even at all?
led mike
I've done it making plugin modules so I don't have to set up duplicate settings for new module projects. Just a copy of an existing project folder is easy, but renaming just the project file name still leaves the old project name in the project settings XML.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I've done it making plugin modules so I don't have to set up duplicate settings for new module projects. Just a copy of an existing project folder is easy, but renaming just the project file name still leaves the old project name in the project settings XML.
Mark Salsbery Microsoft MVP - Visual C++ :java:
One thing to watch is there's a GUID in the project file that links it to the solution. When you copy the project file, you need to generate a new GUID so that the new, cloned project has a different GUID from it's predecessor.
Software Zen:
delete this;
Fold With Us![^] -
One thing to watch is there's a GUID in the project file that links it to the solution. When you copy the project file, you need to generate a new GUID so that the new, cloned project has a different GUID from it's predecessor.
Software Zen:
delete this;
Fold With Us![^]Good to know! Thanks Gary! Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Good to know! Thanks Gary! Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
You're welcome. I had to reverse-engineer the Visual Studio project and solution file formats a while back in order to automate our product branching process. I still don't understand it completely, but I found an approach that works for what we need.
Software Zen:
delete this;
Fold With Us![^]