Commit dd4d598
Lower analyzer Roslyn reference to 4.8.0 for .NET 8+ SDK compat
The analyzer and code fix projects were referencing Microsoft.CodeAnalysis
5.3.0 (via central package management), which only loads in .NET 10+ SDK
compilers. Users on .NET 8 or 9 SDKs would get CS9057 and the analyzer
would silently not run.
- Add VersionOverride="4.8.0" to Microsoft.CodeAnalysis.CSharp in the
analyzer project and Microsoft.CodeAnalysis.CSharp.Workspaces in the
code fixes project. Test projects keep 5.3.0 via central versioning.
- Install .NET 8/9 runtimes in CI so multi-targeted tests can run.
- Add analyzer-compat CI job that packs the built analyzer, installs it
into a throwaway console project under .NET 8 and .NET 9 SDKs, and
verifies no CS9057 warning is emitted.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4e1005e commit dd4d598
3 files changed
Lines changed: 50 additions & 2 deletions
File tree
- .github/workflows
- IntelliTect.Analyzer
- IntelliTect.Analyzer.CodeFixes
- IntelliTect.Analyzer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments