Conversation
Agent-Logs-Url: https://github.com/shibayan/Sharprompt/sessions/a7e60249-05c6-402e-9f71-ed4e19f14808 Co-authored-by: shibayan <1356444+shibayan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix compatibility of Sharprompt 3.1.0 with .NET 8 and 9 SDK
Pin Sharprompt.SourceGenerator to Roslyn 4.11 for .NET 8/9 SDK compatibility
Apr 14, 2026
shibayan
approved these changes
Apr 14, 2026
This was referenced Apr 14, 2026
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.
Sharprompt3.1.0 packsSharprompt.SourceGenerator.dllas an analyzer, and that analyzer was built against Roslyn 5.3.0. Under .NET 8/9 SDKs, that can trigger CS9057 even in consumers that do not use source generation.What changed
Microsoft.CodeAnalysis.CSharppackage used bySharprompt.SourceGeneratorfrom5.3.0to4.11.0.Sharpromptstill packs the source generator analyzer, but it now targets a compiler version compatible with supported SDKs.Why this addresses the issue
Dependency change