I have recently started using MS Visual C++ .NET for development.
My source files are contained in a complex folder structure with multiple level subfolders.
I have been looking for some way to add this complete folder structure to a Visual Studio project in one shot but haven't been able to find one so far.
What I am doing right now is the following
- Project -> Add existing element
- Browse to the base folder containing the files
- Select All files in the folder and click add
However, since the source is spread over more than 100 subfolders, it would be extremely tedious for me to repeat the same for every subfolder.
Can anyone please help me here? Thanks in advance
2. Go to Solution Explorer, and navigate to your project
3. You will see the files. Those that are grey-ed out are those that haven't been added to the project.
4. You can just select the folder (multiple select by holding CTRL button while clicking)
5. Right click and choose Include In Project.