I have dotnet version 5.0.101. When I create a new console application in PowerShell using the command:
dotnet new console
and open that fil