'.NET core console application showing (0 project) in solution explorer

I have just started to use Visual Studio 2019 and I cannot run my newly created C# .NET core Console App. It was created using the Console Application template as shown: enter image description here there is no option to run program and it is showing that there are 0 projects under the solution explorer. enter image description here dotnet should be successfully installed, dotnet -- info returns .NET SDK (5.0.405) and running 'dotnet' in the folder with the .csproj file runs the console app, printing 'Hello world'. I've also checked that dotnet is included in System Properties -> Environment Variables -> System variables -> path. The console app was created using the .NET core console application template as shown:

How do I run the console app in Visual Studio 19?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source