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

Open
#4,002 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, csharp

Research direction

Start by inspecting the package dependency declaration for Microsoft.Identity.Web.Certificate and its packaging or dependency tests; the issue does not name specific files. Verify the Azure.Identity and Azure.Core versions the package declares and how they interact with the versions cited in the report. Done means the package dependency avoids the described incompatible version combination; confirm with the relevant package tests.

Written by the indexing model from the issue text.

Description

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)

Dominant language
C#
Stars
787
Forks
277
Avg merge
1d 21h
Merged PRs (30d)
12

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AzureAD/microsoft-identity-web

All issues in AzureAD/microsoft-identity-web

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.