{{ message }}
Conversation
Microsoft.CodeAnalysis.CSharp was bumped to 5.9.0 in npgsql#6635, which requires Roslyn 5.9 to load Npgsql.SourceGenerators. SDK 10.0.3xx and earlier ship older compilers (10.0.200 ships 5.3), failing with CS9057. 10.0.400 is the first SDK that includes Roslyn 5.9. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YakHXFUBSSV4annG4xrCH8
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.

#6635 bumped
Microsoft.CodeAnalysis.CSharp/Analyzersto 5.9.0. A source generator can't reference a newer Roslyn than the compiler that loads it, so buildingNpgsql.SourceGeneratorswith an older SDK fails:global.jsoncurrently allows 10.0.200 (Roslyn 5.3). CI still passes because runners have newer SDKs installed androllForward: latestMajorpicks them. Local builds on an SDK older than 10.0.400 fail.This raises the minimum to 10.0.400, the first SDK that ships Roslyn 5.9. I checked by inspecting
Microsoft.Net.Sdk.Compilers.Toolset: 10.0.303 → 5.6, 10.0.400 → 5.9. Now an SDK that's too old gives a clear "SDK not found" error instead of CS9057.Verified locally:
src/Npgsqlfails with CS9057 on SDK 10.0.200 and builds on 10.0.401.🤖 Generated with Claude Code
https://claude.ai/code/session_01YakHXFUBSSV4annG4xrCH8