#!/bin/bash set -x SYSTEM=`uname -s` BUILD_CONFIG=Debug PUBLISH_CONFIG=Release NETCOREVER=net6.0 RUNTIME_WIN=win7-x64 RUNTIME=$RUNTIME_WIN RESTORE=true PUBLISH=true build_one_proj_exe() { dotnet restore ./$1 str="../share/ExcelExport/win7-x64/checkbin" dotnet publish $1 --configuration $PUBLISH_CONFIG --runtime $RUNTIME --output $str --framework $NETCOREVER } RUNTIME=$RUNTIME_WIN build_one_proj_exe CheckConfig echo $SYSTEM