Skip to content

Document breaking change: ProviderAliasAttribute moved to Microsoft.Extensions.Logging.Abstractions#46264

Closed
Copilot wants to merge 9 commits intomainfrom
copilot/fix-45806-2
Closed

Document breaking change: ProviderAliasAttribute moved to Microsoft.Extensions.Logging.Abstractions#46264
Copilot wants to merge 9 commits intomainfrom
copilot/fix-45806-2

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 19, 2025

This PR documents a breaking change in .NET 10 Preview 4 where ProviderAliasAttribute has been moved from the Microsoft.Extensions.Logging namespace to Microsoft.Extensions.Logging.Abstractions.

The changes include:

  • Created a new breaking change document at docs/core/compatibility/extensions/10.0/provider-alias-attribute-moved-namespace.md that:

    • Explains the namespace change for ProviderAliasAttribute
    • Documents that the type is type-forwarded from the original location
    • Describes the potential breaking scenario when mixing older versions of Microsoft.Extensions.Logging with .NET 10 version of Microsoft.Extensions.Logging.Abstractions
    • Provides recommended actions for handling the change, including conditional compilation examples
  • Updated the reference to ProviderAliasAttribute in docs/core/extensions/custom-logging-provider.md to use the new namespace

  • Added the breaking change entry to the table of contents and .NET 10 breaking changes overview

This change allows users who depend on Microsoft.Extensions.Logging.Abstractions and use ProviderAliasAttribute to avoid taking a dependency on the full Microsoft.Extensions.Logging package.

Fixes #45806.


💡 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.

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI changed the title [WIP] [Breaking change]: Moving ProviderAliasAttribute to Microsoft.Extensions.Logging.Abstractions Document breaking change: ProviderAliasAttribute moved to Microsoft.Extensions.Logging.Abstractions May 19, 2025
Copilot AI requested a review from gewarren May 19, 2025 23:50
Comment thread docs/core/compatibility/toc.yml Outdated
Comment thread docs/core/extensions/custom-logging-provider.md
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Comment thread docs/core/compatibility/extensions/10.0/provideraliasattribute-moved-assembly.md Outdated
Comment thread docs/core/compatibility/extensions/10.0/provideraliasattribute-moved-assembly.md Outdated
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Comment thread docs/core/compatibility/extensions/10.0/provideraliasattribute-moved-assembly.md Outdated
gewarren and others added 2 commits May 19, 2025 17:50
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
@gewarren gewarren marked this pull request as ready for review May 20, 2025 01:02
@gewarren gewarren requested a review from a team as a code owner May 20, 2025 01:02
Comment thread docs/core/compatibility/extensions/10.0/provideraliasattribute-moved-assembly.md Outdated
@gewarren gewarren closed this May 20, 2025
@gewarren gewarren reopened this May 20, 2025
@gewarren gewarren closed this May 20, 2025
@gewarren gewarren deleted the copilot/fix-45806-2 branch August 14, 2025 17:49
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]: Moving ProviderAliasAttribute to Microsoft.Extensions.Logging.Abstractions

2 participants