Unfortunately, you cannot simply add / import an existing folder and all its subfolders in one step, and Visual Studio does not have a concept of the type of project "resource" as you describe it. You can (as you suggest) use the Solution folders for this purpose, however you must first recreate the folder hierarchy in the solution explorer, for example:
- R-click on the project folder (or any subfolder) and select "Add" → "New folder" (for C # projects) or "Add" → "New filter" (for C ++ projects). Then enter the name of the folder you want to add. (
Build , in your example) - R-click on the newly created folder (still in Solution Explorer) and select "Add" → "Existing item ...". Then go to the appropriate folder on the disk and select all the files / items in this folder that you want to add.
- Repeat this process for all subfolders.
(Note that the folder structure in Solution Explorer is not required to match the hierarchy on the disk. This allows, for example, placing all your header files and source files in separate folders in Solution Explorer, but saving them in one folder on disk.)
kmote source share