I've created a self-contained .NET Core console application following this good tutorial.
This process produces a /publish
folder with 123(!) files, including my executable. Now, since all these dlls are unlikely to ever change, I'd like to statically link them to the executable and get a single, clean executable.
I'm mostly interested in linking a win64 target on my build server, however instructions on how to build a macosx executable or a linux one are going to be useful to me and to future readers.
I remember doing this under .Net classic a few years back. Has anyone succeeded in doing it under .Net Core?
See also this related corefx issue