Repository navigation
Remove explicit Microsoft.CodeAnalysis.Analyzers 3.11.0 dependency - #15146
Conversation
Remove the direct TaskAnalyzer reference and central 3.11.0 pin. Retain the analyzer-authoring package only through required Roslyn dependencies. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Analyzer-check preservation and source-only build validation remain unresolved.
Review effort: Lite
Findings: None
What changed in this PR
Removes the explicit Roslyn analyzer dependency and central version pin to improve source-build compatibility.
Changes:
- Removes the package reference from
TaskAnalyzer.csproj. - Removes the centrally pinned version.
| File | Summary | Review findings |
|---|---|---|
src/TaskAnalyzer/TaskAnalyzer.csproj |
Removes the analyzer-authoring package reference. | Moderate (1 vote): Preserve or explicitly gate the RS analyzer checks. Moderate (1 vote): Validate the Linux source-only build. |
eng/dependabot/Directory.Packages.props |
Removes the corresponding central version pin. | — |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
✅ 24/24 dimensions clean — no findings.
Warning
Firewall blocked 3 domains
The following domains were blocked by the firewall during workflow execution:
api.github.comapi.nuget.orggithub.com
[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:
tools:
github:
mode: gh-proxySee GitHub Tools for more information on gh-proxy mode.
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "api.github.com"
- "api.nuget.org"
- "github.com"See Network Configuration for more information.
Generated by Expert Code Review (on open) for #15146 · copilot · gpt56 · 349.1 AIC · ⌖ 5.17 AIC · ⊞ 17.8K
Related issue(s):
Fixes: #15145
Context
The explicit Microsoft.CodeAnalysis.Analyzers 3.11.0 dependency is reported to break source-build. It supplies analyzer-authoring checks, not MSBuild's task-analyzer implementation.
Changes Made
Remove the TaskAnalyzer package reference and central version entry. Both must be removed because central transitive pinning would otherwise continue promoting the transitive dependency to 3.11.0.
Compatibility
Keep the required Roslyn libraries and existing analyzer configuration. Microsoft.CodeAnalysis.Analyzers remains transitive and resolves to 3.3.4 in the verified graphs. No runtime or task-diagnostic behavior changes are intended.
Testing
BuildAnalyzer=true, it resolves 3.3.4.Dependencies and Follow-up
No companion changes required. Full Linux source-build was not run; the reported failure still needs confirmation in that environment. Local source-only restore does not establish full source-build compatibility.