#!/bin/bash set -e echo "Using pre-installed .NET SDKs..." dotnet --list-sdks echo "Modifying csproj files to target only net8.0 for Qodana..." # Replace multi-targeting with single target net8.0 find . -name "*.csproj" -exec sed -i 's|net10.0;net8.0|net8.0|g' {} + # Just in case some files still have single target net10.0 find . -name "*.csproj" -exec sed -i 's|net10.0|net8.0|g' {} + echo "Restoring NuGet packages in container..." dotnet restore --no-cache