From 1f3a0dd536b4e5bcd46374660d98a3e52f44e179 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Mon, 15 Jun 2026 10:11:09 -0600 Subject: [PATCH] Compile analyzers to support .NET 8 SDK We had updated the roslyn compiler our analyzers compiled against such that they didn't work on the .NET 8 SDK any more. This fixes them to roslyn 4.11 so it works on .NET 8. Fixes #1399 --- .github/renovate.json | 2 +- Directory.Packages.props | 12 ++++++++---- src/StreamJsonRpc.Analyzers/.editorconfig | 2 ++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 src/StreamJsonRpc.Analyzers/.editorconfig diff --git a/.github/renovate.json b/.github/renovate.json index 32bbf1d5f..8a76a0df5 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -11,7 +11,7 @@ "allowedVersions": "<2.3" }, { - "matchJsonata": [ "sharedVariableName='RoslynVersion'" ], + "matchJsonata": [ "sharedVariableName='RoslynVersionForAnalyzers'" ], "enabled": false } ] diff --git a/Directory.Packages.props b/Directory.Packages.props index 2f22e274d..c440b3210 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,8 @@ true 2.5.198 2.0.201 - 4.14.0 + 5.3.0 + 4.11.0 4.14.0 17.14.15 @@ -45,9 +46,12 @@ - - - + + + + + + diff --git a/src/StreamJsonRpc.Analyzers/.editorconfig b/src/StreamJsonRpc.Analyzers/.editorconfig new file mode 100644 index 000000000..e547d8958 --- /dev/null +++ b/src/StreamJsonRpc.Analyzers/.editorconfig @@ -0,0 +1,2 @@ +[*.cs] +dotnet_diagnostic.RSEXPERIMENTAL002.severity = suggestion