How to create a dotnet core single executable
The closest to answer is probably CoreRT
(.Net Core
to Native). It will be excellent fit but exist small problem - This project is still in early apha. A year ago they showed us demo but it was a very simple example and for more advanced projects will not work. Some more information how to try do this.
This is available as of .Net Core 3 like:
dotnet publish -r win10-x64 -p:PublishSingleFile=true
See also https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-core-3-0#single-file-executables