Skip to content

Add Microsoft.Extensions.Options to dependencies - #30233

Draft
Yeming Liu (isra-fel) wants to merge 2 commits into
mainfrom
isra-fel-patch-4
Draft

Yeming Liu (isra-fel) wants to merge 2 commits into
mainfrom
isra-fel-patch-4

Conversation

@isra-fel

@isra-fel Yeming Liu (isra-fel) commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Added Microsoft.Extensions.Options to the assembly resolver dependencies.

Follow-up to #30231
Would solve the issue if the versions continue to drift.
Not a candidate for hotfix/oob cause 30231 would already mitigate the issue.

Todo: add changelog after release branch for az 16.4.0 is merged back to main; validate smoke test.

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Added Microsoft.Extensions.Options to the assembly resolver dependencies.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 06:59
@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The required Accounts changelog entry is missing and will trigger repository validation.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds cross-major assembly redirection for Microsoft.Extensions.Options to resolve dependency version conflicts.

Changes:

  • Allows Az.Resources v2 requests to resolve against the shipped v10 assembly.
File Description
src/​Accounts/​Authentication/​Utilities/​CustomAssemblyResolver.cs Adds Options to the redirection allowlist.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

"System.Memory.Data",
"System.Text.Json",
"Microsoft.Bcl.AsyncInterfaces",
"Microsoft.Extensions.Options", // Azure.Identity depends on v10, Az.Resources depends on v2
Copilot AI balanced review requested due to automatic review settings October 1, 2026 07:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The required Az.Accounts changelog entry is missing.

Review effort: Balanced
Findings: 1 High severity

Open (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants