Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ keywords: ["changelog", "API updates", "release notes", "what's new", "API chang

To subscribe to updates, please [**“Turn on notifications”**](https://help.x.com/en/managing-your-account/notifications-on-mobile-devices#:~:text=In%20the%20top%20menu,%20you,you%20would%20like%20to%20receive) for [**@API**](https://x.com/api). You can also follow this changelog in your feed reader via the [**RSS feed**](https://docs.x.com/changelog/rss.xml).

<Update label="Dec 3, 2026" description="SDKs">
### .NET Framework 4.7.2+ support for C# XDK (`XDevPlatform.Xdk` `0.4.0`)

The official **C# / .NET XDK** ([`XDevPlatform.Xdk`](https://www.nuget.org/packages/XDevPlatform.Xdk/0.4.0) `0.4.0`) now multi-targets `netstandard2.0` alongside `net8.0`, enabling **.NET Framework 4.7.2+** applications to call the X API v2 (including `/2/chat/*`, OAuth 1.0a, OAuth 2.0 PKCE, pagination, and real-time streaming) with zero public API changes:

- **Zero external dependencies on `.NET 8+`:** `net8.0` keeps its zero-dependency layout; `netstandard2.0` adds Microsoft's `System.Text.Json` (`8.0.5`), `Microsoft.Bcl.AsyncInterfaces` (`8.0.0`), and `System.Threading.Tasks.Extensions` (`4.5.4`).
- **Full streaming & auth parity on `.NET Framework 4.7.2`:** Supports `OAuth1`, `OAuth2Pkce`, `Paginator<T>`, and chunked `EventStream<T>` with keep-alive callbacks and `IdleTimeout` recovery. On older Windows hosts, enable TLS 1.2 at startup with `ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`.

Install with `dotnet add package XDevPlatform.Xdk --version 0.4.0`. See [C# / .NET XDK](/xdks/csharp/overview).
</Update>

<Update label="Dec 3, 2026" description="SDKs">
### Linux ARM64 (glibc and musl) support for Go Chat XDK (`go/chatxdk` `v0.7.12`)

Expand Down
2 changes: 1 addition & 1 deletion enterprise-api/getting-started/important-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Bookmark these essential resources for X API development.
| [Python SDK](/xdks/python/overview) | Official Python library (`xdk`) |
| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript/JavaScript library (`@xdevplatform/xdk`) |
| [Java SDK](/xdks/java/overview) | Official Java 8+ library (`com.x:xdk`) |
| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ library (`XDevPlatform.Xdk`) |
| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ / .NET Framework 4.7.2+ library (`XDevPlatform.Xdk`) |
| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable API specification |

---
Expand Down
2 changes: 1 addition & 1 deletion enterprise-api/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Enterprise access powers the most demanding use cases on X.
Official Java 8+ library (`com.x:xdk`).
</Card>
<Card title="C# SDK" icon="code" href="/xdks/csharp/overview">
Official .NET 8+ library (`XDevPlatform.Xdk`).
Official .NET 8+ / .NET Framework 4.7.2+ library (`XDevPlatform.Xdk`).
</Card>
</CardGroup>

Expand Down
2 changes: 1 addition & 1 deletion important-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Bookmark these essential resources for X API development.
| [Python SDK](/xdks/python/overview) | Official Python library (`xdk`) |
| [TypeScript SDK](/xdks/typescript/overview) | Official TypeScript/JavaScript library (`@xdevplatform/xdk`) |
| [Java SDK](/xdks/java/overview) | Official Java 8+ library (`com.x:xdk`) |
| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ library (`XDevPlatform.Xdk`) |
| [C# SDK](/xdks/csharp/overview) | Official .NET 8+ / .NET Framework 4.7.2+ library (`XDevPlatform.Xdk`) |
| [OpenAPI Spec](https://api.x.com/2/openapi.json) | Machine-readable API specification |

---
Expand Down
2 changes: 1 addition & 1 deletion tools-and-libraries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Client libraries for the X API v2, generated from the OpenAPI spec with auth, pa
`com.x:xdk` · Java 8+
</Card>
<Card title="C# / .NET" icon="code" href="/xdks/csharp/overview">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
`dotnet add package XDevPlatform.Xdk` · .NET 8+ / .NET Framework 4.7.2+
</Card>
</CardGroup>

Expand Down
8 changes: 4 additions & 4 deletions tools/csharp-xdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ description: C# and .NET client library for the X API v2.
keywords: ["C# SDK", ".NET SDK", "XDK", "C#", "dotnet", "NuGet", "XDevPlatform.Xdk", "X API"]
---

`XDevPlatform.Xdk` ([GitHub](https://github.com/xdevplatform/xdk-csharp)) is the official C# / .NET client library for the X API v2 (.NET 8+).
`XDevPlatform.Xdk` ([GitHub](https://github.com/xdevplatform/xdk-csharp)) is the official C# / .NET client library for the X API v2 (**.NET 8+** and **.NET Framework 4.7.2+** via `netstandard2.0`).

<CardGroup cols={2}>
<Card title="NuGet" icon="code" href="https://www.nuget.org/packages/XDevPlatform.Xdk">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
`dotnet add package XDevPlatform.Xdk` · .NET 8+ / .NET Framework 4.7.2+
</Card>
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-csharp">
Source code and issues.
Expand All @@ -28,13 +28,13 @@ dotnet add package XDevPlatform.Xdk

```xml PackageReference
<ItemGroup>
<PackageReference Include="XDevPlatform.Xdk" Version="0.1.2" />
<PackageReference Include="XDevPlatform.Xdk" Version="0.4.0" />
</ItemGroup>
```

</CodeGroup>

Requires .NET 8.0+.
Supports .NET 8.0+ (`net8.0`, zero external dependencies) and .NET Framework 4.7.2+ (`netstandard2.0`). On older Windows versions, enable TLS 1.2 at startup with `ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`.

---

Expand Down
2 changes: 1 addition & 1 deletion x-api/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Earn free [xAI API](https://docs.x.ai) credits when you purchase X API credits
Official Java 8+ library (`com.x:xdk`).
</Card>
<Card title="C# SDK" icon="code" href="/xdks/csharp/overview">
Official .NET 8+ library (`XDevPlatform.Xdk`).
Official .NET 8+ / .NET Framework 4.7.2+ library (`XDevPlatform.Xdk`).
</Card>
</CardGroup>

Expand Down
12 changes: 10 additions & 2 deletions xdks/csharp/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebarTitle: Install
description: Add the C# / .NET XDK from NuGet.
---

Install `XDevPlatform.Xdk` from [NuGet](https://www.nuget.org/packages/XDevPlatform.Xdk). Requires .NET 8.0+.
Install `XDevPlatform.Xdk` from [NuGet](https://www.nuget.org/packages/XDevPlatform.Xdk). Supports **.NET 8.0+** (`net8.0`, zero external dependencies) and **.NET Framework 4.7.2+** (via `netstandard2.0`, adding `System.Text.Json`, `Microsoft.Bcl.AsyncInterfaces`, and `System.Threading.Tasks.Extensions`).

<CodeGroup>

Expand All @@ -14,7 +14,7 @@ dotnet add package XDevPlatform.Xdk

```xml PackageReference (.csproj)
<ItemGroup>
<PackageReference Include="XDevPlatform.Xdk" Version="0.1.2" />
<PackageReference Include="XDevPlatform.Xdk" Version="0.4.0" />
</ItemGroup>
```

Expand All @@ -24,6 +24,14 @@ Install-Package XDevPlatform.Xdk

</CodeGroup>

## .NET Framework 4.7.2+ TLS 1.2 note

On older Windows versions (such as Windows Server 2012 R2) or applications with legacy `AppContext` TLS overrides, enable TLS 1.2 at startup:

```csharp
System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12;
```

## Custom `HttpClient`

In ASP.NET Core or worker services using `IHttpClientFactory`, pass a managed `HttpClient` via `XClientOptions.HttpClient`:
Expand Down
4 changes: 2 additions & 2 deletions xdks/csharp/llms.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# C# XDK (`XDevPlatform.Xdk` v0.3.2)
# C# XDK (`XDevPlatform.Xdk` v0.4.0)

> Official C# client library for the X API v2 (.NET 8.0+). Install with `dotnet add package XDevPlatform.Xdk`.
> Official C# client library for the X API v2 (.NET 8.0+ / .NET Framework 4.7.2+). Install with `dotnet add package XDevPlatform.Xdk`.

## Guides

Expand Down
4 changes: 2 additions & 2 deletions xdks/csharp/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ sidebarTitle: Overview
description: C# and .NET client library for the X API v2.
---

`XDevPlatform.Xdk` is the official C# / .NET SDK for the X API v2 (.NET 8+). It uses `System.Net.Http` and `System.Text.Json` with no extra runtime dependencies, async methods with `CancellationToken`, `IAsyncEnumerable<T>` pagination, and `EventStream<T>`.
`XDevPlatform.Xdk` is the official C# / .NET SDK for the X API v2 (**.NET 8+** and **.NET Framework 4.7.2+** via `netstandard2.0`). It uses `System.Net.Http` and `System.Text.Json` with zero extra runtime dependencies on `net8.0`, async methods with `CancellationToken`, `IAsyncEnumerable<T>` pagination, and `EventStream<T>`.

<CardGroup cols={2}>
<Card title="NuGet" icon="code" href="https://www.nuget.org/packages/XDevPlatform.Xdk">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
`dotnet add package XDevPlatform.Xdk` · .NET 8+ / .NET Framework 4.7.2+
</Card>
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-csharp">
Source code and issues.
Expand Down
6 changes: 3 additions & 3 deletions xdks/csharp/reference/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: "API Reference"
sidebarTitle: "Overview"
description: "Client and method reference for the C# XDK (XDevPlatform.Xdk v0.3.2)."
description: "Client and method reference for the C# XDK (XDevPlatform.Xdk v0.4.0)."
---

Client setup and method reference for `XDevPlatform.Xdk` `v0.3.2`.
Client setup and method reference for `XDevPlatform.Xdk` `v0.4.0`.

<CardGroup cols={2}>
<Card title="NuGet" icon="box" href="https://www.nuget.org/packages/XDevPlatform.Xdk">
`XDevPlatform.Xdk` `v0.3.2` · .NET 8.0+
`XDevPlatform.Xdk` `v0.4.0` · .NET 8.0+ / .NET Framework 4.7.2+
</Card>
<Card title="GitHub" icon="github" href="https://github.com/xdevplatform/xdk-csharp">
Source code and issues.
Expand Down
2 changes: 1 addition & 1 deletion xdks/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- **Python**: `xdk` (`v0.13.2`, Python 3.8+) — `pip install xdk` — [Index](https://docs.x.com/xdks/python/llms.txt)
- **TypeScript**: `@xdevplatform/xdk` (`v0.9.2`, Node.js 18+ (ESM & CommonJS)) — `npm install @xdevplatform/xdk` — [Index](https://docs.x.com/xdks/typescript/llms.txt)
- **Java**: `com.x:xdk` (`v0.4.0`, Java 8+) — `implementation("com.x:xdk:0.4.0")` — [Index](https://docs.x.com/xdks/java/llms.txt)
- **C#**: `XDevPlatform.Xdk` (`v0.3.2`, .NET 8.0+) — `dotnet add package XDevPlatform.Xdk` — [Index](https://docs.x.com/xdks/csharp/llms.txt)
- **C#**: `XDevPlatform.Xdk` (`v0.4.0`, .NET 8.0+ / .NET Framework 4.7.2+) — `dotnet add package XDevPlatform.Xdk` — [Index](https://docs.x.com/xdks/csharp/llms.txt)
- **Ruby**: `xdk` (`v0.1.0`, Ruby 3.0+) — `gem install xdk` — [Index](https://docs.x.com/xdks/ruby/llms.txt)

## Guides
Expand Down
4 changes: 2 additions & 2 deletions xdks/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The X Developer Kits (XDKs) are X's client libraries for the X API v2, generated
`com.x:xdk` · Java 8+
</Card>
<Card title="C# / .NET" icon="code" href="/xdks/csharp/overview">
`dotnet add package XDevPlatform.Xdk` · .NET 8+
`dotnet add package XDevPlatform.Xdk` · .NET 8+ / .NET Framework 4.7.2+
</Card>
<Card title="Ruby" icon="gem" href="/xdks/ruby/overview">
`gem install xdk` · Ruby 3.0+
Expand All @@ -34,7 +34,7 @@ The X Developer Kits (XDKs) are X's client libraries for the X API v2, generated
| **Python** | `xdk` | Python 3.8+ | [PyPI](https://pypi.org/project/xdk/) | [xdk-python](https://github.com/xdevplatform/xdk-python) |
| **TypeScript / JS** | `@xdevplatform/xdk` | Node.js 18+ | [npm](https://www.npmjs.com/package/@xdevplatform/xdk) | [xdk-typescript](https://github.com/xdevplatform/xdk-typescript) |
| **Java** | `com.x:xdk:0.4.0` | Java 8+ | [Maven Central](https://central.sonatype.com/artifact/com.x/xdk) | [xdk-java](https://github.com/xdevplatform/xdk-java) |
| **C# / .NET** | `XDevPlatform.Xdk` | .NET 8.0+ | [NuGet](https://www.nuget.org/packages/XDevPlatform.Xdk) | [xdk-csharp](https://github.com/xdevplatform/xdk-csharp) |
| **C# / .NET** | `XDevPlatform.Xdk` | .NET 8.0+ / .NET Framework 4.7.2+ | [NuGet](https://www.nuget.org/packages/XDevPlatform.Xdk) | [xdk-csharp](https://github.com/xdevplatform/xdk-csharp) |
| **Ruby** | `xdk` | Ruby 3.0+ | [RubyGems](https://rubygems.org/gems/xdk) | [xdk-ruby](https://github.com/xdevplatform/xdk-ruby) |

---
Expand Down
Loading