1

How can I include external files into a visual studio project and keeping the folder structure? I have a folder holding a huge sum of files, nicely ordered into folders and sub folders but when I copy this into my project, only the files are being copied, not the folders. Do I need to create all the folders ('filters' in VS?) myself and copy each file one by one into the correct sub folder?

Seems like a very basic functionality to me?

Thanks.

JesseB1234
  • 147
  • 7
  • Using Windows Explorers, I'm able to simply copy and paste any folder into the directory of where my project files are and Visual Studio will automatically show the folder (with the correct subdirectory structures) in Solution Explorer. – Timothy G. Aug 18 '22 at 15:28
  • 1
    The behavior will depend on which project type (e.g. language and platform) you are using. I believe C++ (based on your mention of "filters") uses a purely virtual hierarchy, i.e. does not map to disk. See also https://stackoverflow.com/questions/15677756/visual-studio-c-use-filters-as-directories – Jimmy Aug 19 '22 at 16:33
  • Thanks @Jimmy. Indeed, I use C++. I've found some useful information in the link/question. – JesseB1234 Aug 22 '22 at 08:15

0 Answers0