{{ message }}
Repository navigation
Use built-in Zstandard on .NET 11 - with pipeline fix - #189
Open
kenjitamura wants to merge 1 commit into
Open
kenjitamura wants to merge 1 commit into
kenjitamura wants to merge 1 commit into
Conversation
Member
.NET 11 adds Zstandard to System.IO.Compression (ZstandardEncoder / ZstandardDecoder), so ZstdSharp.Port is no longer needed on net11.0. - Add net11.0 to the target frameworks. - Restrict the ZstdSharp.Port PackageReference to TFMs < net11.0. MSBuild's '<'/'>' operators are numeric-only, so TFM ordering goes through [MSBuild]::VersionLessThan on a numeric TFM version. - Add a NET11_0_OR_GREATER code path in ZstdDataCompression using the static one-shot API; the ZstdSharp path is unchanged for older TFMs. Frames remain standard Zstandard (magic 28 B5 2F FD), so data written by either provider stays readable by the other.
kenjitamura
force-pushed
the
feat/net11-builtin-zstd
branch
from
October 18, 2026 08:37
b6cada0 to
586f491
Compare
Author
|
Saw the pipeline fix was only running unit tests against .net10 so updated the csproj for unit tests. |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Originally: #187
Fixes build pipeline while we wait for .Net 11 to reach GA.
Adds a path on .Net 11 to use its new built-in ZstandardEncoder introduced in System.IO.Compression and drops the dependency on ZstdSharp.Port for .Net 11+
.NET Libraries in .NET 11 Preview 1 - Release Notes
Full disclosure this was mostly AI and I just adjusted formatting and changed some questionable decisions it had made in the csproj.
I'll patch the commit to update dotnet.yml when .Net 11 reaches GA and this pull will be a stub until then.