Visual Studio - project shows up as "Miscellaneous Files"

Solution 1:

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.

Solution 2:

I have this issue in VS 2017 also.
I found that this miscellaneous files are files added outside the VS. So if switch to another git branch (where there are new files) whithout closing the VS and click to "Reload" button in VS (when it checks that sln/csproj files are modified outside the VS) then these new files are not correctly parsed by VS and "marked" as miscellaneous.

As workaround I close VS, remove folder .vs from disk and run VS again. After VS will fully initialized these new files are parsed successfully. Note this way clears you custom settings like StartUp Project and so on.