Skip to content

Flow CodeAnalysis analyzers version automatically - #55680

Open
marcpopMSFT wants to merge 1 commit into
mainfrom
marcpopmsft-automate-analyzer-version
Open

Flow CodeAnalysis analyzers version automatically#55680
marcpopMSFT wants to merge 1 commit into
mainfrom
marcpopmsft-automate-analyzer-version

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

The centrally pinned Microsoft.CodeAnalysis.Analyzers version can fall behind the Roslyn packages supplied by codeflow, causing package downgrade restore failures such as the one fixed in #55654.

Move the analyzer version into Maestro dependency metadata so the existing dotnet/dotnet codeflow updates it alongside the other Roslyn components. The initial flowed version is 5.11.0-1.26406.108, matching the current Roslyn dependency set, while the existing MicrosoftCodeAnalysisAnalyzersVersion consumer property remains available through the generated compatibility alias.

Move Microsoft.CodeAnalysis.Analyzers into Maestro dependency metadata so dotnet/dotnet codeflow keeps it aligned with the other Roslyn components.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a894e8d2-9b64-4080-9e62-0808907e8e11
Copilot AI review requested due to automatic review settings August 7, 2026 18:36
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@marcpopMSFT

Copy link
Copy Markdown
Member Author

@tannergooding moved this to auto update with codeflow per your comment here: #55654 (comment)

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.

Pull request overview

Moves the Microsoft.CodeAnalysis.Analyzers version pin from a manually maintained property in eng/Versions.props into Maestro dependency-flow metadata so it can be updated automatically alongside other Roslyn components flowing from dotnet/dotnet.

Changes:

  • Remove the manual MicrosoftCodeAnalysisAnalyzersVersion pin from eng/Versions.props.
  • Add Microsoft.CodeAnalysis.Analyzers as a flowed dependency in eng/Version.Details.xml.
  • Consume the flowed version via generated eng/Version.Details.props (including a compatibility alias MicrosoftCodeAnalysisAnalyzersVersion).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
eng/Versions.props Drops the manual analyzer version pin so the flowed value isn’t overridden.
eng/Version.Details.xml Adds Microsoft.CodeAnalysis.Analyzers to Maestro-managed dependency metadata for codeflow updates.
eng/Version.Details.props Introduces the generated package version and preserves the existing consumer-facing alias property.

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.

3 participants