I am using VS 2019 v16.8.1, I have the option to create WPF(.NET) and similar project to .NET 5 but unable to create a console application target to .NET 5.
I am using VS 2019 v16.8.1, I have the option to create WPF(.NET) and similar project to .NET 5 but unable to create a console application target to .NET 5.
It will be available on Visual Studio 16.9 per .NET 5.0 Announcement
The templates in Visual Studio 16.8 still target .NET Core 3.1, for console, WPF and Windows Forms apps. The ASP.NET templates have been updated to support .NET 5.0. We will update the templates in Visual Studio 16.9 for the remaining templates.
If anyone wants to do this, there is an alternative way.
Open the .csproj file and change the Target Framework to <TargetFramework>net5.0</TargetFramework>