DotNetMuxerimplementations, but they all look quite similar (if not exactly the same).
FX_DEPS_FILEfile and those that just use the current process'
MainModule(which would be
dotnet[.exe]itself for a .NET Core app. The latter looks simpler and the former seems unnecessary, until you take into account self-contained .NET Core apps or even trimmed self-contained, but even that version doesn't work in those cases :(