I had the same issue. took me quiet a while to figure it out. In my case, I was trying to open a new ASP .NET Core Application and I was getting back 0 Projects like the one on this post.
What I tried:
I tried changing environmental variables under Control Panel\System and Security\System (click advance settings)

Then click Environmental Variables

Then check to see if you have dotnet path included, whether it is under Program Files or Program files (x86)

Some people suggested to move (x86) up, which is based on microsoft documentation
What fixed my issue:
Turns out I had the wrong version installed and it was not compatible with Visual Studio 2017

Then I removed the other installations and reinstalled the right version that is compatible with VS17 and works like a magic. Hope it helps someone in the future.