Repository navigation
Fix TaskAnalyzer dependencies for source-build for msbuild - #9184
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
|
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. |
VolPlita
marked this pull request as ready for review
September 14, 2026 14:37
Contributor
There was a problem hiding this comment.
🟡 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
TaskAnalyzerin 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
Co-authored-by: Copilot <[email protected]>
VolPlita
approved these changes
Sep 16, 2026
ViktorHofer
reviewed
Sep 16, 2026
ViktorHofer
left a comment
Member
There was a problem hiding this comment.
Looks good aside from the one version question about the minimum required compiler.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
VolPlita
approved these changes
Sep 16, 2026
ViktorHofer
reviewed
Sep 16, 2026
ViktorHofer
reviewed
Sep 16, 2026
ViktorHofer
reviewed
Sep 16, 2026
Co-authored-by: Copilot <[email protected]>
VolPlita
enabled auto-merge (squash)
September 16, 2026 11:02
ViktorHofer
reviewed
Sep 16, 2026
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
ViktorHofer
reviewed
Sep 16, 2026
Co-authored-by: Copilot <[email protected]>
ViktorHofer
approved these changes
Sep 16, 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Microsoft.Build.TaskAuthoring.Analyzerin MSBuild's source-build solution filter