How to reorganize an existing VS solution with 1 project into the same VS solution with 2 or more projects in a clean fashion?

  • Thread starter Thread starter tom_mai78101
  • Start date Start date
T

tom_mai78101

Guest
I currently have a Visual Studio solution with 1 active C++ project (1 of 1 project) in the solution. The plan is for me to convert this existing Visual Studio solution into 2 or more C++ projects (N of N projects) in the same existing solution.

My concern about reorganizing the Visual Studio solution and the currently existing project, is the organization of the folder structures on the hard drive. I can move files just as easily as moving files in the Files Explorer, but I don't know how to fix the solution and VCXPROJ files if I were to try and point them to the correct locations. They seem to require some UUIDs that I don't know how to generate.

To visualize what my current project is like, I give a graph below:

1465881.png


Ideally, this is what I wanted to end up with:


1465882.png


So, if I were to move around files and create new folders or create new projects inside the solution, how should I do this in the most cleanliest fashion in Visual Studio 2019, so I don't have to open the SLN and VCXPROJ files in a separate text editor and modify them?

If I can't avoid editing the files, how do I make sure I'm doing this reorganization process in the most cleanliest way possible? Thank you in advance.

Continue reading...
 
Back
Top