Skip to content

.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. #11658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Bryan-Roe opened this issue Apr 20, 2025 · 0 comments
Assignees
Labels
.NET Issue or Pull requests regarding .NET code

Comments

@Bryan-Roe
Copy link

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 Bryan-Roe-ai#710 (comment)

@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Apr 20, 2025
@github-actions github-actions bot changed the title 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. .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. Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
Status: No status
Development

No branches or pull requests

3 participants