01_dotnet_build.sh: Checking for dotnet10

This commit is contained in:
Karsten Jeppesen
2026-11-22 10:35:21 +01:00
parent 9aebb0c68e
commit aaa84eefa8
2 changed files with 17 additions and 10 deletions
+7
View File
@@ -1,6 +1,13 @@
#!/bin/bash
echo "OK" > jenkins.result
# Check dotnet10 installed
! which dotnet || sudo apt-get install -y dotnet10
if ! which dotnet; then
echo "DOTNET NOT FOUND"
exit 1
fi
# Find all .csproj files and loop through them
find . -type f -name "*.csproj" | while read -r csproj; do
echo "Building $csproj..."