Skip to content

Update Microsoft.CodeAnalysis.Common#372

Merged
awaescher merged 2 commits intomainfrom
update-packages
Mar 4, 2026
Merged

Update Microsoft.CodeAnalysis.Common#372
awaescher merged 2 commits intomainfrom
update-packages

Conversation

@awaescher
Copy link
Copy Markdown
Owner

Copilot AI review requested due to automatic review settings March 4, 2026 07:10
@awaescher awaescher merged commit 768e631 into main Mar 4, 2026
1 check passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates centrally-managed Roslyn package versioning to address issue #335 about CS9057 warnings when consuming OllamaSharp with newer .NET SDKs.

Changes:

  • Bumps Microsoft.CodeAnalysis.Common from 4.14.0 to 5.0.0 in central package versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +8 to 9
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

This version bump likely won’t address issue #335 (CS9057). The source generator project references Microsoft.CodeAnalysis.CSharp (and gets Microsoft.CodeAnalysis.Common transitively), so changing Microsoft.CodeAnalysis.Common here alone may have no effect on the analyzer assembly. Also, CS9057 is triggered when the analyzer references a newer compiler than the consuming SDK, so bumping the Roslyn dependency higher (e.g., from 4.14 to 5.0) would typically make the warning more likely for users on SDKs with an older compiler (like the reported 4.12). Consider pinning Microsoft.CodeAnalysis.CSharp/Common to the oldest compiler version you want to support (or multi-target/build the analyzer against that version) if the goal is to eliminate CS9057.

Copilot uses AI. Check for mistakes.
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