I coded a simple program and I compiled it with dotnet publish -c Release -r osx.10.11-x64
It creates a binary file that works well but if I move this file somewhere else without the other files in the same directory, the program can't run:
A fatal error occurred, the required library libhostfxr.dylib could not be found at /Users/me/
Is there any way to make the binary independent?
I remember on Windows and with .NET it was possible using ILMerge (but it uses .dll files, and not .dylib)