From 565f238f7ec5a028dea2a8339a3bf5d675321836 Mon Sep 17 00:00:00 2001 From: Ziya Suzen Date: Tue, 23 Jun 2026 13:29:48 +0100 Subject: [PATCH] docs: drop stale net6.0 references [no ci] net6.0 was already removed from the target frameworks (netstandard2.0, netstandard2.1, net8.0, net10.0). Update the platform-compatibility page and fix csproj/script comments that still described netstandard dependency groups as net6.0. --- scripts/apicompat.sh | 3 +-- src/NATS.Client.JetStream/NATS.Client.JetStream.csproj | 2 +- .../NATS.Client.Serializers.Json.csproj | 2 +- .../documentation/advanced/platform-compatibility.md | 8 ++++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/apicompat.sh b/scripts/apicompat.sh index a2a0218b7..7e556f7b8 100644 --- a/scripts/apicompat.sh +++ b/scripts/apicompat.sh @@ -61,8 +61,7 @@ echo "=======================" exit_code=0 -# Only check against net8.0 as the target TFM -# net6.0 has known differences with init accessors +# Compare the netstandard surfaces against net8.0 as the baseline TFM check_compat "netstandard2.0" "net8.0" || exit_code=1 check_compat "netstandard2.1" "net8.0" || exit_code=1 diff --git a/src/NATS.Client.JetStream/NATS.Client.JetStream.csproj b/src/NATS.Client.JetStream/NATS.Client.JetStream.csproj index ff36857b5..227ecc260 100644 --- a/src/NATS.Client.JetStream/NATS.Client.JetStream.csproj +++ b/src/NATS.Client.JetStream/NATS.Client.JetStream.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/NATS.Client.Serializers.Json/NATS.Client.Serializers.Json.csproj b/src/NATS.Client.Serializers.Json/NATS.Client.Serializers.Json.csproj index 44441e2cd..2682d14a7 100644 --- a/src/NATS.Client.Serializers.Json/NATS.Client.Serializers.Json.csproj +++ b/src/NATS.Client.Serializers.Json/NATS.Client.Serializers.Json.csproj @@ -13,7 +13,7 @@ - + diff --git a/tools/site_src/documentation/advanced/platform-compatibility.md b/tools/site_src/documentation/advanced/platform-compatibility.md index 602512cc8..30c649ea0 100644 --- a/tools/site_src/documentation/advanced/platform-compatibility.md +++ b/tools/site_src/documentation/advanced/platform-compatibility.md @@ -4,8 +4,8 @@ NATS.Net targets multiple .NET platforms to provide broad compatibility: - `netstandard2.0` - .NET Framework 4.6.1+, .NET Core 2.0+, Mono, Xamarin, Unity - `netstandard2.1` - .NET Core 3.0+ -- `net6.0` - .NET 6 - `net8.0` - .NET 8 +- `net10.0` - .NET 10 While the API surface is designed to be consistent across all target frameworks, there are some intentional differences due to platform capabilities. This page documents these differences. @@ -20,7 +20,7 @@ property allows you to configure TLS client authentication options. | Target Framework | Type | |-----------------|------| | `netstandard2.0` | `NATS.Client.Core.SslClientAuthenticationOptions` (polyfill) | -| `netstandard2.1`, `net6.0`, `net8.0` | `System.Net.Security.SslClientAuthenticationOptions` (BCL) | +| `netstandard2.1`, `net8.0`, `net10.0` | `System.Net.Security.SslClientAuthenticationOptions` (BCL) | On `netstandard2.0`, the library provides a polyfill type `NATS.Client.Core.SslClientAuthenticationOptions` because the BCL type doesn't exist in that target framework. The polyfill provides a subset of the @@ -42,7 +42,7 @@ If you need the full `SslClientAuthenticationOptions` functionality, consider ta The [`AddNats`](xref:NATS.Client.Hosting.NatsHostingExtensions.AddNats*) extension method has different signatures depending on the target framework: -**netstandard2.0, netstandard2.1, net6.0:** +**netstandard2.0, netstandard2.1:** ```csharp public static IServiceCollection AddNats( this IServiceCollection services, @@ -51,7 +51,7 @@ public static IServiceCollection AddNats( Action? configureConnection = null) ``` -**net8.0:** +**net8.0, net10.0:** ```csharp public static IServiceCollection AddNats( this IServiceCollection services,