Raised the analyzers and the source generator to Roslyn v5.0.0 of .NET 10

This commit is contained in:
Thorsten Sommer committed 2026-11-01 14:01:06 +01:00
1 parent fc1bac1a89
commit c492f36c06
3 files changed
+9 -9

No files matched your search

@@ -20,13 +20,13 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!--
Never above the Roslyn of the .NET SDK we build with (see metadata.txt): the 9.0.1xx SDKs ship
Roslyn 4.12. Built against a newer one, the compiler skips these analyzers with CS9057. Raise
Never above the Roslyn of the .NET SDK we build with (see metadata.txt): the 10.0.1xx SDKs ship
Roslyn 5.0. Built against a newer one, the compiler skips these analyzers with CS9057. Raise
both only together with the SDK feature band, with SourceGeneratedMappings, and with the Tests
project.
-->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
</ItemGroup>
</Project>
@@ -21,11 +21,11 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!--
Never above the Roslyn of the .NET SDK we build with (see metadata.txt): the 9.0.1xx SDKs ship
Roslyn 4.12. Built against a newer one, the compiler skips this generator with CS9057, and the
Never above the Roslyn of the .NET SDK we build with (see metadata.txt): the 10.0.1xx SDKs ship
Roslyn 5.0. Built against a newer one, the compiler skips this generator with CS9057, and the
generated namespaces such as AIStudio.Tools.PluginSystem.Assistants.Icons go missing. Raise it
only together with the SDK feature band, with SourceCodeRules, and with the Tests project.
-->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
</ItemGroup>
</Project>
+2 -2
View File
@@ -14,9 +14,9 @@
<!--
Held at the version the two analyzer projects build against, so that a test compiling a
snippet uses the same Roslyn the analyzers themselves were written for. Raise all three
together, and never above the Roslyn of the .NET SDK in metadata.txt (4.12 for 9.0.1xx).
together, and never above the Roslyn of the .NET SDK in metadata.txt (5.0 for 10.0.1xx).
-->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.0" />
<!--
Pinned below 4.6.0 on purpose, verified by bisecting 4.4.0, 4.5.0, 4.5.1, 4.6.0 and 4.6.1