Repository navigation
Document ZipArchive.CreateAsync eager loading breaking change for .NET 11 - #51452
Merged
Merged
Conversation
Document the breaking change in .NET 11 Preview 1 where ZipArchive.CreateAsync eagerly loads all zip archive entries to avoid synchronous reads on the stream. - Add article documenting the behavioral change - Update TOC to include the new article - Add entry to .NET 11 breaking changes index
Copilot
AI
changed the title
[WIP] Fix ZipArchive.CreateAsync eager loading of entries
Document ZipArchive.CreateAsync eager loading breaking change for .NET 11
Feb 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Documents a .NET 11 breaking change where ZipArchive.CreateAsync eagerly loads ZIP entries to avoid synchronous reads when accessing ZipArchive.Entries.
Changes:
- Added a new breaking change article describing the eager-loading behavior and the exception timing shift.
- Updated the .NET 11 breaking changes index to include the new entry.
- Updated the compatibility TOC to link the new article under Core .NET libraries.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
docs/core/compatibility/toc.yml |
Adds the new breaking change article to the compatibility TOC under .NET 11 Core .NET libraries. |
docs/core/compatibility/core-libraries/11/ziparchive-createasync-eager-load.md |
New article documenting the behavioral change, rationale, and recommended action. |
docs/core/compatibility/11.md |
Adds the new breaking change entry to the .NET 11 index table. |
rzikm
approved these changes
Feb 4, 2026
meaghanlewis
approved these changes
Feb 4, 2026
Co-authored-by: Radek Zikmund <[email protected]>
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.
Documents the behavioral change in .NET 11 Preview 1 where
ZipArchive.CreateAsynceagerly loads all zip archive entries during the method call to prevent synchronous reads when accessing the.Entriesproperty.Changes
core-libraries/11/ziparchive-createasync-eager-load.mdInvalidDataExceptionfor malformed entries now thrown inCreateAsyncinstead of.EntriesaccessImpact
Developers should wrap
CreateAsynccalls in try-catch forInvalidDataException.References: dotnet/runtime#121938, dotnet/runtime#121624
Original prompt
ZipArchive.CrateAsynceagerly loads all zip archive entries #50254💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Internal previews