Click here to Skip to main content
14,607,949 members
Rate this:
Please Sign up or sign in to vote.
I am using Visual Studio 2015. I have created a solution, this solution has multiple projects.
Each project has a seperate directory and current project directory structure as follows:
Main_Project_Folder
       Application1  // c++ project folder
       Application2  // c++ project folder
       CommonApplication // c++ project folder
       Client1  // c++ project folder
       Client2  // c++ project folder
       CommonClient // c# project folder
       GTestFrameWork // GtestFrameWorkDirectory folder
       UnitTest // c++ unit test project folder
       Project.sln  // Project solution file

Types Of Project:
1- Actual application projects: Application1, Application2, CommonApplication
2- Test projects: Client1 , Client2, CommonClient
3- Unit Testing projects: GTestFrameWork, UnitTest

Every c++ project folder contained the c++, header files, vcxproj, vcxproj.filter and vcxproj.user files and every c# project folder contains WPF and c# files.

I want to combine these multiple folders into the common 3 folders. SO that my directory structure are as follows:
Main_Project_Folder
       Actual application_projects
              Application1  // c++ project folder
              Application2  // c++ project folder
              CommonApplication // c++ project folder
       Test_projects
              Client1  // c++ project folder
              Client2  // c++ project folder
              CommonClient // c# project folder
       Unit_Testing_projects
              GTestFrameWork // GtestFrameWorkDirectory folder
              UnitTest // c++ unit test project folder
       Project.sln  // Project solution file

I am not sure whether it is possible or not. If possible then suggest to me how to do this?

What I have tried:

I tried to do it manually but VS2015 is not able to find the vcxproj files for building the solution.
Posted
Updated 8-Jul-20 4:13am
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

You can have your projects anywhere you like. Here is the way I would recommend to get there:
- close Visual Studio
- move your project folders around any way you like
- reopen the solution, and when Visual Studio complains, in the "Solution Explorer" pane:
1. remove the projects it can't find (right click/Remove);
2. add the projects it didn't find (right click/Add/Existing Project).

If you're hesitant, either make a backup first and/or try it with a single project.

BTW If you would like to have several projects in a single folder (without subfoders), I strongly advise against that.
   
Comments
Member 14686752 10-Jul-20 0:17am
   
Yeah, it is working. Thanks for the help:)
Rate this:
Please Sign up or sign in to vote.

Solution 2

The easiest way is to create your desired folder structure in Explorer. Copy all Projects where you want them. Then create a new solution and add all the existing projects (i would also create solution-folders to follow the physical structure of the files)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100