Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 8, 2025

This PR documents the breaking change where Uri length limits have been removed in .NET 10 Preview 7. Previously, Uri constructors and TryCreate methods limited Uri strings to around 65k characters, but these restrictions have now been lifted.

The documentation includes:

  • New breaking change file: /docs/core/compatibility/networking/10.0/uri-length-limits-removed.md with complete details about the change
  • Updated index: Added entry to the networking section in /docs/core/compatibility/10.0.md

The change allows creation of Uri instances with much larger paths, queries, and fragments, which enables scenarios like:

  • Large data: URIs containing Base64-encoded binary data
  • Extended query strings for inter-system communication
  • Other use cases where Uri serves as an exchange type beyond HTTP requests

For users relying on Uri length restrictions for input validation, the documentation recommends implementing custom length checks before constructing Uri instances.

Fixes #47602.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/networking/10.0/uri-length-limits-removed.md Uri length limits removed
docs/core/compatibility/toc.yml docs/core/compatibility/toc

…ew 7

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI changed the title [WIP] [Breaking change]: Uri length limits have been removed Document Uri length limits removal in .NET 10 Preview 7 Aug 8, 2025
Copilot AI requested a review from gewarren August 8, 2025 22:53
Copilot finished work on behalf of gewarren August 8, 2025 22:53
@gewarren gewarren requested a review from MihaZupan August 11, 2025 18:38
@gewarren gewarren marked this pull request as ready for review August 11, 2025 18:38
@gewarren gewarren requested a review from a team as a code owner August 11, 2025 18:38
Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@gewarren gewarren merged commit 714a8a3 into main Aug 11, 2025
10 checks passed
@gewarren gewarren deleted the copilot/fix-47602 branch August 11, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: Uri length limits have been removed

3 participants