Last active 1708409994

Init all slns

init.sh Raw
1# Create solution.
2rm *.sln
3dotnet new sln
4find . -name *.csproj | xargs -I {} dotnet sln add {}
5
6# Build projects
7find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained
8
9# Push all
10for dir1 in ./*; do
11 if [ -d "$dir1" ]; then
12 echo "Pushing $dir1"
13 cd "$dir1"
14 git add .
15 git commit -m "Upgrade to .NET 8"
16 git push
17 # 返回到原始目录
18 cd ..
19 fi
20done
21