Skip to content

Commit

Permalink
Merge pull request #5548 from chenrui333/fix-dotnet-build
Browse files Browse the repository at this point in the history
fix: pin Microsoft.CodeAnalysis.CSharp to 4.8.0.0 to fix compiler mismatch
  • Loading branch information
baywet authored Oct 8, 2024
2 parents f747321 + 028f0e6 commit 338b5a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Kiota.Generated/KiotaGenerated.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.*"
<!-- NOTE: This version constraint (4.8.0.0) MUST match the earliest version supported for .NET 8 to prevent compatibility issues with the SDK.
Updating this version might cause runtime errors due to unsupported dependencies in older SDK versions.
Please avoid upgrading this dependency unless the target framework version is changed or until confirmed compatible with .NET 8.
If Dependabot suggests an upgrade, it should be ignored. -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0.0"
ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0"
ExcludeAssets="runtime" />
Expand All @@ -19,4 +23,4 @@
<Copy SourceFiles="..\Kiota.Builder\Kiota.Builder.csproj" />
</Target>

</Project>
</Project>

0 comments on commit 338b5a6

Please sign in to comment.