Skip to content

Commit a39d010

Browse files
CopilotPhenX
andcommitted
Revert LangVersion to 12.0 and Roslyn to 4.11.0 to fix test failures
The LangVersion 14.0 change caused compilation issues with net8.0 and net9.0 frameworks, breaking tests. Since C# 14 implicit extensions aren't fully available yet in current Roslyn versions, keeping LangVersion at 12.0 while implementing forward-compatible code is the right approach. Co-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
1 parent eeacd62 commit a39d010

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
44
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
5-
<LangVersion>14.0</LangVersion>
5+
<LangVersion>12.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<EnableNETAnalyzers>true</EnableNETAnalyzers>
88
<NoWarn>CS1591</NoWarn>

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
2525
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
2626
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
27-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
28-
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0" />
27+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
28+
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
2929
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
3030
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
3131
<PackageVersion Include="ScenarioTests.XUnit" Version="1.0.1" />

0 commit comments

Comments
 (0)