Add breaking change documentation for System.IO.Packaging case-insensitive URI comparison in .NET 8 #48777
+57
−0
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.
This PR adds comprehensive breaking change documentation for the behavioral change in
System.IO.Packaging
where package part URIs are now compared case-insensitively in .NET 8, aligning with the Open Packaging Conventions (OPC) specification and .NET Framework behavior.What Changed
In .NET 8,
System.IO.Packaging
now performs case-insensitive URI comparisons usingStringComparison.OrdinalIgnoreCase
instead of the previous case-sensitive behavior. This change:/part
and/PART
) are properly rejectedDocumentation Added
/docs/core/compatibility/core-libraries/8.0/system-io-packaging-case-insensitive-uri.md
with complete details on the behavioral change, impact, and recommended actions/docs/core/compatibility/toc.yml
in the appropriate .NET 8 Core .NET libraries section/docs/core/compatibility/8.0.md
categorized as a behavioral changeThe documentation follows the established breaking change template and includes proper API cross-references for the affected methods:
System.IO.Packaging.Package.GetPart(Uri)
System.IO.Packaging.Package.CreatePart(Uri, string)
Impact on Developers
Developers using
System.IO.Packaging
should ensure their OPC packages don't contain part names differing only by case, as this violates the OPC specification. For packages that do violate the spec, the documentation provides guidance on using ZIP archives directly to access conflicting entries when needed.Fixes #486221 (associated workitem for dotnet/runtime#112783)
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews