diff --git a/.github/prepare-qodana.sh b/.github/prepare-qodana.sh index 6e7ee44a..fad2884f 100644 --- a/.github/prepare-qodana.sh +++ b/.github/prepare-qodana.sh @@ -1,10 +1,11 @@ #!/bin/bash set -e -echo "Installing .NET 10.0 SDK..." -wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh -chmod +x dotnet-install.sh -./dotnet-install.sh --channel 10.0 --quality daily --install-dir /usr/share/dotnet - -echo ".NET 10.0 SDK installed." +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' {} + diff --git a/lib/QuanTAlib.Tests.csproj b/lib/QuanTAlib.Tests.csproj index cae7fb59..3b8f848b 100644 --- a/lib/QuanTAlib.Tests.csproj +++ b/lib/QuanTAlib.Tests.csproj @@ -1,7 +1,7 @@ - net10.0 + net10.0;net8.0 enable enable false diff --git a/lib/quantalib.csproj b/lib/quantalib.csproj index 2313d9e9..54880747 100644 --- a/lib/quantalib.csproj +++ b/lib/quantalib.csproj @@ -1,6 +1,6 @@  - net10.0 + net10.0;net8.0 QuanTAlib Library of TA Calculations, Charts and Strategies for Quantower Quantitative Technical Analysis Library in C# for Quantower