diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ebad527f3..23e6220aeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,7 +141,7 @@ jobs: publish: name: Publish - if: (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && startsWith(github.ref, 'refs/tags/v') && endsWith(github.actor, '-stripe')) + if: (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && startsWith(github.ref, 'refs/tags/v')) needs: [build, prepare-dotnet-versions] runs-on: ubuntu-latest permissions: diff --git a/README.md b/README.md index f7cd2f5a35..2e3e5774df 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ From within Visual Studio: ### Requirements -Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=dotnet#stripe-sdk-language-version-support-policy), we currently support **.NET Standard 2.0+, .NET Core 5+, and .NET Framework 4.6.2+.**. +Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=dotnet#stripe-sdk-language-version-support-policy), we currently support **.NET Standard 2.0+, LTS versions of .NET Core 6+, and .NET Framework 4.6.2+.**. -Support for .NET Core versions 5 & 7 are deprecated and will be removed in the next major version. Support for version 6 will be removed in a future version. Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=dotnet#stripe-sdk-language-version-support-policy +Support for version 6 will be removed in a future version. Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=dotnet#stripe-sdk-language-version-support-policy ## Documentation @@ -308,6 +308,7 @@ Some preview features require a name and version to be set in the `Stripe-Versio ```csharp StripeConfiguration.AddBetaVersion("feature_beta", "v3"); ``` + ### Private Preview SDKs > This feature is only available from version 46 of this SDK. diff --git a/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs b/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs index 4017a7566f..ebdad9f91d 100644 --- a/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs +++ b/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs @@ -25,12 +25,8 @@ public class SystemNetHttpClient : IHttpClient public const int DefaultMaxNumberRetries = 2; private const string StripeNetTargetFramework = -#if NET5_0 - "net5.0" -#elif NET6_0 +#if NET6_0 "net6.0" -#elif NET7_0 - "net7.0" #elif NET8_0 "net8.0" #elif NET9_0 diff --git a/src/Stripe.net/Stripe.net.csproj b/src/Stripe.net/Stripe.net.csproj index 6fb67ee9ea..3c3c6fb786 100644 --- a/src/Stripe.net/Stripe.net.csproj +++ b/src/Stripe.net/Stripe.net.csproj @@ -9,7 +9,7 @@ see: https://docs.stripe.com/sdks/versioning?server=dotnet#stripe-sdk-language-version-support-policy net* even numbers are LTS --> - net5.0;net6.0;net7.0;net8.0;net9.0;netstandard2.0;net462 + net6.0;net8.0;net9.0;netstandard2.0;net462 stripe;payment;credit;cards;money;gateway;paypal;braintree icon.png https://github.com/stripe/stripe-dotnet @@ -45,18 +45,9 @@ - - - - - - - - - diff --git a/src/StripeTests/StripeTests.csproj b/src/StripeTests/StripeTests.csproj index 112d1f130f..c87b15ba5d 100644 --- a/src/StripeTests/StripeTests.csproj +++ b/src/StripeTests/StripeTests.csproj @@ -1,7 +1,7 @@ - net5.0;net6.0;net7.0;net8.0;net9.0;net462 + net6.0;net8.0;net9.0;net462 8 true false