Visual Studio - project shows up as “Miscellaneous Files”

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

    After trying all the other offered solution, what worked for me is:

    • Editing the .gitattributes file.
    • adding *.xproj text eol=crlf

    So that my VS2015 xproj style .NET Core/Standard projects worked again.

    Turned out that my git was putting UNIX style EOL, which was confusing VS.

提交回复
热议问题