Skip to content

Fix TaskAnalyzer dependencies for source-build for msbuild - #9184

Merged
VolPlita merged 10 commits into
mainfrom
dev/AR-May/fix-vmr-taskanalyzer-source-build
Sep 16, 2026
Merged

VolPlita merged 10 commits into
mainfrom
dev/AR-May/fix-vmr-taskanalyzer-source-build

Conversation

@AR-May

@AR-May AR-May commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • include Microsoft.Build.TaskAuthoring.Analyzer in MSBuild's source-build solution filter
  • track its Roslyn dependencies as previously source-built inputs
  • flow N-1 Roslyn versions into MSBuild through analyzer-specific package properties
  • preserve the released Roslyn pins for non-source-build configurations

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 9, 2026 13:58
@azure-pipelines

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

@AR-May AR-May changed the title Fix TaskAnalyzer dependencies for source-build [DO NOT MERGE] Fix TaskAnalyzer dependencies for source-build for msbuild Sep 9, 2026
@VolPlita
VolPlita marked this pull request as ready for review September 14, 2026 14:37
@VolPlita
VolPlita requested review from a team as code owners September 14, 2026 14:37
Copilot AI lite review requested due to automatic review settings September 14, 2026 14:37

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.

🟡 Changes recommended

The Roslyn dependency closure is incomplete, leaving a critical source-only restore mismatch risk.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates MSBuild source-build orchestration so TaskAnalyzer uses N-1 Roslyn packages while preserving released pins elsewhere.

Changes:

  • Includes TaskAnalyzer in the source-build solution filter.
  • Tracks and flows analyzer-specific Roslyn versions.
  • Applies source-only package overrides.
File summaries
File Description
src/msbuild/MSBuild.SourceBuild.slnf Includes TaskAnalyzer in source builds.
src/msbuild/eng/Version.Details.xml Records source-build Roslyn dependencies.
src/msbuild/eng/Version.Details.props Exposes Roslyn dependency versions.
src/msbuild/eng/dependabot/Directory.Packages.props Applies analyzer-specific package overrides.
repo-projects/msbuild.proj Flows N-1 Roslyn versions during source-only builds.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/msbuild/eng/Version.Details.xml Resolved
@VolPlita VolPlita changed the title [DO NOT MERGE] Fix TaskAnalyzer dependencies for source-build for msbuild Fix TaskAnalyzer dependencies for source-build for msbuild Sep 16, 2026

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good aside from the one version question about the minimum required compiler.

Comment thread src/msbuild/eng/Version.Details.xml Resolved
Comment thread src/msbuild/eng/Version.Details.xml Resolved
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 16, 2026 09:10
Comment thread repo-projects/msbuild.proj Resolved
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 16, 2026 10:58
@VolPlita
VolPlita enabled auto-merge (squash) September 16, 2026 11:02
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 16, 2026 11:18
Comment thread src/msbuild/Directory.Packages.props Resolved
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team September 16, 2026 11:53
@VolPlita
VolPlita merged commit 47b4ac8 into main Sep 16, 2026
11 checks passed
@VolPlita
VolPlita deleted the dev/AR-May/fix-vmr-taskanalyzer-source-build branch September 16, 2026 14:23
@AR-May AR-May self-assigned this Sep 21, 2026
AR-May added a commit that referenced this pull request Oct 2, 2026
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Volodymyr Plita <[email protected]>
Cherry-picked-from: 47b4ac8
Co-authored-by: Copilot App <[email protected]>
dotnet-maestro Bot added a commit that referenced this pull request Oct 2, 2026
[release/11.0.2xx] Source code updates from dotnet/msbuild


 - Fix TaskAnalyzer dependencies for source-build for msbuild (#9184)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Volodymyr Plita <[email protected]>
Cherry-picked-from: 47b4ac8
Co-authored-by: Copilot App <[email protected]>

 - Fix TaskAnalyzer Roslyn tracking for release/11.0.2xx

Track CSharp and CSharp.Workspaces 4.12.0-3.24574.8 from Roslyn BAR build 247071 at dfa7fc6bdea31a858a402168384192b633c811fa. Regenerate Version.Details.props with Darc, preserving the Roslyn 4.12 source baseline for normal builds.

Remove obsolete direct Analyzers dependency tracking and its source-only alias; TaskAnalyzer consumes Analyzers transitively. Retain dynamic previously-source-built Roslyn overrides and the unconditional transitive-pinning opt-out.

Co-authored-by: Copilot App <[email protected]>
OvesN added a commit to dotnet/msbuild that referenced this pull request Nov 3, 2026
Resolve the unsafe release/11.0.2xx backflow without reverting main's
18.14 branding, change wave, OptProf settings, or temp-file guidance.

Retain the TaskAnalyzer source-build fixes from dotnet/dotnet#9184 as
adapted for release/11.0.2xx in dotnet/dotnet#9867, including Roslyn
dependency tracking, source-built overrides, solution inclusion, and
the transitive-pinning opt-out.

Keep the existing analyzer regression tests on main instead of
reintroducing duplicate copies from dotnet/dotnet#9157.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 42e15b55-755d-4c11-8413-c4bf270a9425
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.

4 participants