Visual Studio - project shows up as “Miscellaneous Files”

后端 未结 13 1940
走了就别回头了
走了就别回头了 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:45

    If it's not showing up in your Solution Explorer, try clicking the "Show All Files" button at the top of Solution Explorer. If the files become visible and are located under the project you expect them to be in, but the file still has "Miscellaneous" listed as its project, then right click the files and select "Include in Project". Otherwise try dragging them to the proper project.

    I just hit this issue in VS 2017 and this is what worked for me.

提交回复
热议问题