In .NET framework, you can make a single .EXE file that will run from the command line without having any extra config files (and if using ILMerge, you can put
Tested with .NET Core 2.2 on a console app:
On Windows it produced a fully functional 5Mb .exe file (compared to original self-contained publish with folder size at ~60Mb). On macOS the ILComplier though produced output without any error, the app crashed with unhandled expection (on the line with LINQ expression).
*Go to "Tools -> Options -> Package Manager -> Package Sources" and add new source at https://dotnet.myget.org/F/dotnet-core/api/v3/index.json