Skip to content

Document IActionContextAccessor deprecation breaking change for .NET 10 #47891

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

Merged
merged 5 commits into from
Aug 8, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 7, 2025

This PR documents the breaking change announced in aspnet/Announcements#520 regarding the deprecation of IActionContextAccessor and ActionContextAccessor in ASP.NET Core for .NET 10 Preview 7.

Changes Made

  • Created new ASP.NET Core 10.0 compatibility directory structure
  • Added comprehensive breaking change documentation for the IActionContextAccessor deprecation (diagnostic ID ASPDEPR006)
  • Updated the main 10.0.md index file to include the new breaking change in the ASP.NET Core section
  • Updated toc.yml to include the new documentation in the navigation structure

Documentation Details

The breaking change documentation includes:

  • Clear explanation of why IActionContextAccessor is being deprecated in favor of endpoint routing
  • Migration guidance showing how to replace IActionContextAccessor with IHttpContextAccessor and HttpContext.GetEndpoint()
  • Before/after code examples demonstrating the migration pattern
  • Proper categorization as both source incompatible and behavioral change
  • API references using the correct xref format for the affected types

The documentation follows the established format and style guidelines, including proper markdown formatting and all linting checks pass successfully.

Fixes #47619.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/aspnet-core/10/iactioncontextaccessor-obsolete.md IActionContextAccessor and ActionContextAccessor are obsolete
docs/core/compatibility/toc.yml docs/core/compatibility/toc

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Document https://github.com/aspnet/Announcements/issues/520 Document IActionContextAccessor deprecation breaking change for .NET 10 Aug 7, 2025
@Copilot Copilot AI requested a review from gewarren August 7, 2025 20:53
Copilot finished work on behalf of gewarren August 7, 2025 20:53
@gewarren gewarren marked this pull request as ready for review August 7, 2025 23:17
@gewarren gewarren requested a review from a team as a code owner August 7, 2025 23:17
@gewarren gewarren requested a review from captainsafia August 7, 2025 23:17
@gewarren gewarren requested a review from danroth27 August 8, 2025 18:13
@gewarren gewarren enabled auto-merge (squash) August 8, 2025 18:45
@gewarren gewarren merged commit 69b5f41 into main Aug 8, 2025
10 checks passed
@gewarren gewarren deleted the copilot/fix-47619 branch August 8, 2025 18:48
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.

Document https://github.com/aspnet/Announcements/issues/520
3 participants