You may have just discovered that when you create a console app using the .NET Core CLI tools it only produces a DLL by default.
If you execute this:
And then execute a build
You will get this output:
It took me a while to figure this out, but in order to generate an EXE instead of a DLL, you need to pass a ‘runtime’ to the build command, like this:
Which will produce an EXE:
List of valid runtimes (RIDs) can be found here: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog#using-rids