semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Specifying '-f net8.0' in the subsequent dotnet test commands may lead to compatibility issues if any integration test projects are not targeted to .NET 8; consider parameterizing the target framework to align with project configurations.

Open Bryan-Roe opened this issue 8 months ago • 0 comments

Specifying '-f net8.0' in the subsequent dotnet test commands may lead to compatibility issues if any integration test projects are not targeted to .NET 8; consider parameterizing the target framework to align with project configurations.

            TARGET_FRAMEWORKS=$(grep -oP '(?<=<TargetFramework>).*?(?=</TargetFramework>)' $project || grep -oP '(?<=<TargetFrameworks>).*?(?=</TargetFrameworks>)' $project | tr ';' '\n')
            for framework in $TARGET_FRAMEWORKS; do
              dotnet test -f $framework -c ${{ matrix.configuration }} $project --no-build -v Normal --logger trx
            done

Originally posted by @Copilot in https://github.com/Bryan-Roe-ai/semantic-kernel/pull/710#discussion_r2051660088

Bryan-Roe avatar Apr 20 '25 23:04 Bryan-Roe