.NET 9 compatibility - Microsoft.CodeAnalysis (again?)

1 Answer 77 Views
Installer and VS Extensions
April
Top achievements
Rank 1
April asked on 28 Jan 2025, 11:26 AM | edited on 28 Jan 2025, 12:26 PM

Hi, I have a working, simple, ASP.NET core program (using .NET 9) and adding Telerik ASP.NET Core breaks the project (~sigh~). The project issues warnings regarding CodeAnalysis resolution. I tried adding the package (as per the .NET 8 fix (Upgrading to .NET 8)) - that made things worse.

 

I've tried using the Telerik wizard in VS2022 or manually (which historically has not been an issue.

Follow-up note: Issue is related to EntityFrameworkCore, which has a dependency on Microsoft.CodeAnalysis 4.8.

- adding Telerik,UI.for.ASPNet.Core to this configuration creates version issues for EF packages and Telerik. The project configuration before adding Telerik is the ASP.NET Core project template for Razor Page based project (Visual Studio 2022 with up-to-date patching.)

Any suggestions (please).

 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 31 Jan 2025, 06:34 AM

Hi April,

Thank you for the details provided.

In order to achieve the desired result, I would recommend using one of the following approaches:

  • Before adding Telerik, try manually setting the Microsoft.CodeAnalysis version explicitly in your .csproj:
    <ItemGroup>
        <PackageReference Include="Microsoft.CodeAnalysis" Version="4.8.0" />
    </ItemGroup>
    
  • Try an Older or Newer Telerik Version. Telerik 2024.3.806 (or later) should be the preferred version for .NET 9.

Give a try to the approaches above and let me know if they resolve the issue.

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Installer and VS Extensions
Asked by
April
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or