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

前端 未结 18 1305
眼角桃花
眼角桃花 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 01:05

    Enable "Show All Files" for the specific project (you might need to hit "Refresh" to see them)**.

    The folders/files that are not part of your project appear slightly "lighter" in the project tree.

    Right click the folders/files you want to add and click "Include In Project". It will recursively add folders/files to the project.

    ** These buttons are located on the mini Solution Explorer toolbar.

    ** Make sure you are NOT in debug mode.

提交回复
热议问题