Check out example codes for "asp.netcore: develop on win10 run on ubuntu". It will help you in understanding the concepts better.

Code Example 1

dotnet publish **path to your solution** --configuration Release --framework netcoreapp3.0 --output .**output path** --self-contained false --runtime linux-x64 --verbosity quiet

Learn ReactJs, React Native from akashmittal.com