I want to create a self-contained executable for my .NET Core Console application that can be run on the command line without the dotnet command. When I try to create a self contained executable using dotnet publish -r osx-x64, a .dll with the project name is created in the output folder, e.g. myproject.dll, instead of an EXE file (I'm assuming on MacOS self contained applications are EXE files just like on Windows). I cannot run myproject.dll directly without using the dotnet command, I have to run dotnet myproject.dll arg1 in order for the program to execute.