Skip to content
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

Use multiple target frameworks. #16451

Merged
merged 2 commits into from
May 8, 2023
Merged

Use multiple target frameworks. #16451

merged 2 commits into from
May 8, 2023

Conversation

maliming
Copy link
Member

@maliming maliming commented May 2, 2023

Resolve #16430

We can use the below code to use different features.

#if NET7_0
        var client = new HttpClient();
        client.DefaultRequestVersion = HttpVersion.Version20;
#elif NETSTANDARD2_1
        var client = new HttpClient();
#elif NETSTANDARD2_0
        var client = new HttpClient();
#endif

@maliming maliming marked this pull request as ready for review May 2, 2023 08:11
@maliming maliming added this to the 7.3-preview milestone May 2, 2023
@codecov

This comment was marked as resolved.

@maliming maliming changed the title Use multiple netstandard target frameworks. Use multiple target frameworks. May 3, 2023
@maliming maliming requested a review from hikalkan May 3, 2023 07:59
@hikalkan hikalkan merged commit ba11ab1 into dev May 8, 2023
3 of 4 checks passed
@hikalkan hikalkan deleted the Multiple-TargetFrameworks branch May 8, 2023 09:03
@applebananamilk
Copy link

Whether to test against multiple frameworks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How long to update the target framework "netstandard2.1" version?
3 participants