Skip to content

[Azure SDK] Outdated version of Azure.Core and Azure.Identity for Microsoft.Identity.Web.Certificate can cause TypeLoadException / BuildError / .... #4002

Description

@tebeco

Hello,

Reason for all that before anyone read:

A lot of library already updated to modern version of Azure.Core + Azure.Identity and can't just be downgraded
example:

More Details:

I see that Microsoft.Identity.Web.Certificate still hold a dependency on [Azure.Identity >= 1.17.2](https://www.nuget.org/packages/Azure.Identity/) (>= 1.17.2)

Issue are Azure.Identity 1.17.2 is from April and is missing few things

  • Doesn't have a net10.0 target while some SDK have (crossing finger to avoid breaking change is not the best)
  • Azure.Identity 1.17.2 depends on Azure.Core 1.50.0 (current is 1.61.0)
  • Azure.Identity and Azure.Core made breaking change when moving type from an assembly to another, which in some scenario leads to "type exists in both assembly" ([Azure Dotnet SDK team don't respect semver as we can see here](Azure Dotnet SDK team don't respect semver as we can see here))
  • The also didn't list that change as a "breaking change" even though it's one when Dependency have incompatible version of Azure.Core + Azure.Identity at the same time

here's the breaking change:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/CHANGELOG.md#1210-2026-04-10

All Azure.Identity types have been moved to Azure.Core and are now available through TypeForwardedTo attributes. This is a non-breaking change — existing code continues to work transparently. See the Migration Guide for details.

Here's the migration Guide:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/MigrationGuide.md

Recomended action: Update either Azure.Identity to 1.21.0 and/or Azure.Core to 1.53.0 (the transitive version of 1.21.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions