bash terminal in windows use dotnet command code example
Example: asp.netcore: develop on win10 run on ubuntu
dotnet publish **path to your solution** --configuration Release --framework netcoreapp3.0 --output .**output path** --self-contained false --runtime linux-x64 --verbosity quiet