Skip to content

Conversation

@bash
Copy link
Member

@bash bash commented Feb 2, 2025

This lays some groundwork for #828:

Since list patterns are a C# 11 feature, we'd have to update Microsoft.CodeAnalysis.* which breaks compatibility with older .NET SDKs / Visual Studio versions.

The solution for this is multi-targeting based on the Roslyn version (which unfortunately is not as convenient to do as multi-targeting based on the target framework and so requires some manual work).

That's what this PR does. I also added some docs on this in Funcky.Analyzers/readme.md.

@bash bash requested review from FreeApophis and Mafii February 2, 2025 18:19
@bash bash force-pushed the roslyn-multi-targeting branch from bb56ccb to 56b96eb Compare February 2, 2025 18:22
@bash bash enabled auto-merge February 2, 2025 18:23
@bash bash merged commit 17689ca into main Feb 3, 2025
9 checks passed
@bash bash deleted the roslyn-multi-targeting branch February 3, 2025 12:44
@FreeApophis
Copy link
Member

It's hard to believe the support is this bad. Maybe reference the documentation you used to do this.

@bash
Copy link
Member Author

bash commented Feb 3, 2025

It's hard to believe the support is this bad. Maybe reference the documentation you used to do this.

Documentation? All the official documentation are a bunch of issues / PRs and the config used in dotnet/runtime 😅

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