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

前端 未结 18 1284
眼角桃花
眼角桃花 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:54

    The cleanest way that I've found to do this is to create a new Class Library project in the target folder, and redirect all of its build output elsewhere. It still leaves a .csproj file sitting in that folder, but it does let you see it in Visual Studio and pick which files to include in your project.

提交回复
热议问题