Merged
Conversation
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Owner
|
@copilot Can you change the major version in the CI to be 3.0.x instead of 2.0.x |
Copilot
AI
changed the title
[WIP] Remove support for Roslyn 3.x and deprecated SDKs
Remove Roslyn 3.x support
Feb 15, 2026
Co-authored-by: meziantou <509220+meziantou@users.noreply.github.com>
Contributor
Author
This was referenced Feb 16, 2026
This was referenced Mar 11, 2026
This was referenced Mar 20, 2026
Open
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.
Eliminates Roslyn 3.8 support to reduce maintenance overhead from conditional compilation directives. Minimum supported version is now Roslyn 4.2 (VS 2022+).
Changes
CI/Build Configuration
roslyn3.8from build matrix and build steps in.github/workflows/ci.yml<When>block fromDirectory.Build.targetsMeziantou.Analyzer.Pack.csprojCode Cleanup
#if ROSLYN_3_8conditional compilation directives from:ReplaceEnumToStringWithNameofAnalyzer.csCompilationExtensions.cs(includingGetTypesByMetadataNamepolyfill)OperationExtensions.cs(Roslyn 3.8 branch ofGetChildOperations)ReplaceEnumToStringWithNameofFixer.csProjectBuilder.Validation.csDocumentBasedFixAllProvider.cs(entire file was Roslyn 3.8-only)New analyzer code no longer requires version guards for Roslyn 4.x+ APIs.
Breaking Change
This is a breaking change that drops support for Visual Studio 2019. The package version has been bumped to 3.0.x to reflect this change according to semantic versioning.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.