A small example using dotnet core 2.1 with CoreRT on Windows:
git clone https://github.com/rubin55/dot-hellocd dot-hellodotnet publish -r win-x64 -c releasecd bin\release\netcoreapp2.1\win-x64\publishHello.exe
On macOS (tested on Mojave 10.14):
git clone https://github.com/rubin55/dot-hellocd dot-hellodotnet publish -r osx-x64 -c releasecd bin/release/netcoreapp2.1/osx-x64/publish./Hello
On Linux (tested on Ubuntu 16.04), make sure native compilation deps are taken care of:
sudo apt-get install clang-5.0sudo apt-get install libunwind-devsudo apt-get install libcurl4-openssl-devsudo apt-get install zlib1g-devsudo apt-get install libkrb5-devexport CppCompilerAndLinker=clang-5.0git clone https://github.com/rubin55/dot-hellocd dot-hellodotnet publish -r linux-x64 -c releasecd bin/release/netcoreapp2.1/linux-x64/publish./Hello