The .NET tool will, by default, produce a .dll file even if you’ve asked it to emit an entry point and you’re building a command line tool. This video will show you what has changed in .NET Core compilation and how you can build an .exe file.
Credit: Channel 9