Example command to run from projects folder:
dotnet.exe build --runtime ubuntu.18.04-x64 --configuration Release
Sources:
https://stackoverflow.com/questions/41533592/how-to-compile-net-core-app-for-linux-on-a-windows-machine
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build