Visual Studio - project shows up as “Miscellaneous Files”

后端 未结 13 1931
走了就别回头了
走了就别回头了 2020-12-01 11:50

This is a weird one. I have a C# Class Library project within my solution. If I open a .cs file within this project, the Project drop-down on the c

13条回答
  •  清歌不尽
    2020-12-01 12:29

    How I solved my issue:

    1. Go to the file which appears as Miscellaneous Files inside Solution Explorer.
    2. Right-Click file and select Exclude from project.
    3. Right-Click your project/folder where the file was and click add Existing Item, and add the file you just removed back into your project.

提交回复
热议问题