Skip to content

Document Uri length limits removal in .NET 10 Preview 7 #47908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot 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.

@Copilot 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 Copilot AI requested a review from gewarren August 8, 2025 22:53
Copilot finished work on behalf of gewarren August 8, 2025 22:53
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
2 participants