When you compile .NET Core Console Application it will generate DLL file instead of exe file for the build project.
NET Core 3.0+ projects will now include an executable file for the platform you build on by default. This is just an executable and your main logic is still inside a
But .NET Core 3.0 also introduced single-file deployments so deploying with
dotnet publish -r win-x64 -p:PublishSingleFile=True --self-contained false
will create a single .exe file containing all your dependencies. You can change
true to also include the .NET Core Runtime as well so .NET Core does not need to be installed globally on the target machine.
You can also do this from Visual Studio Publish
Hope it helps!