# Create solution. rm *.sln dotnet new sln find . -name *.csproj | xargs -I {} dotnet sln add {} # Build projects find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained # Push all for dir1 in ./*; do if [ -d "$dir1" ]; then cd "$dir1" for dir2 in ./*; do if [ -d "$dir2" ]; then cd "$dir2" git add . git commit -m "Fix manhours badge link" git push cd .. fi done # 返回到原始目录 cd .. fi done