How do I “Add Existing Item” an entire directory structure in Visual Studio?

前端 未结 18 1285
眼角桃花
眼角桃花 2020-11-28 00:18

I have a free standing set of files not affiliated with any C# project at all that reside in a complicated nested directory structure.

I want to add them in that for

18条回答
  •  隐瞒了意图╮
    2020-11-28 00:51

    In Windows 7 you could do the following:

    Right click on your project and select "Add->Existing Item". In the dialog which appears, browse to the root of the directory you want to add. In the upper right corner you have a search box. Type *.cs or *.cpp, whatever the type of files you want to add. After the search finishes, select all files, click Add and wait for a while...

提交回复
热议问题