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

Remove special case Newtonsoft version, and update TargetFrameworks #2992

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

jar-stripe
Copy link
Contributor

Why?

We upgraded Newtonsoft and aimed to remove all of the per-target special cases in #2930 but we missed net8.0. As a result, Stripe.net v46 still requires a [bindingRedirect](https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/bindingredirect-element) to use the latest Newtonsoft.Json version. This was not caught because net8.0 was not listed as a target framework in the csproj file. This PR both removes the Newtonsoft.Json special case and adds net8.0 (and net7.0) to the TargetFrameworks tag to ensure they are included in our automated checks.

What?

  • removed Newtonsoft special case from ItemGroup targeted at net8.0
  • added net7.0;net8.0; to TargetFrameworks value
  • updated StripeNetTargetFramework in SystemNetHttpClient to include these versions
  • disabled SYSLIB0050 in StripeConfiguration because StreamingContext is obsolete in net8.0

… builds for those targets

suppressed an obsolete warning in net8.0 (safe for now, will take care of later)
updated StripeNetTargetFramework string building in SystemNetHttpClient
@jar-stripe jar-stripe enabled auto-merge (squash) October 3, 2024 19:33
@jar-stripe jar-stripe merged commit f8b339e into master Oct 3, 2024
3 of 4 checks passed
@jar-stripe jar-stripe deleted the jar/fix-newtonsoft-special-case branch October 3, 2024 20:50
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.

3 participants