Net Standard Reporting DLL 19.0 causes conflicts in .NET 8 project

1 Answer 21 Views
General Discussions
ClausDC
Top achievements
Rank 1
Iron
Iron
ClausDC asked on 01 Apr 2025, 08:39 AM

Our .NET 8 project references .NET Standard Telerik.Reporting.dll.

After upgrading to Telerik Reporting 19.0 we get compiler warnings because of conflicting references.

Apparently, Telerik.Reporting.dll references .NET 9 DLLs (for example "System.Text.Json 9.0.0") while our .NET 8 project obviously references .NET 8 DLLs ("System.Text.Json 8.0.0").

I'm surprised this is happening because I thought Telerik.Reporting as a .NET Standard DLL should be independent of these .NET versions?

Do we have to go back to Telerik Reporting 18 to avoid these conflicts?

We are on .NET 8 because it has LTS (long term support) by Microsoft.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 03 Apr 2025, 03:21 PM

Hello Claus,

Thank you for the provided information about your scenario!

We updated the version of the System.Text.Json dependency to 9.0.2 with the last release of the product - Telerik Reporting - Progress® Telerik® Reporting 2025 Q1 (19.0.25.313).

This change was introduced so that the .NET Standalone Report Designer, that originally built for .NET 8, can be run with the .NET 9 runtime by using a special flag when starting the application, see Loading .NET 9 assemblies in the Standalone Report Designer for .NET - Telerik Reporting for more details.

Please note that the major version(9.x.x) in the System.Text.Json package does not have a direct correlation with the required .NET runtime version. The major version increment indicates significant updates or changes in the library itself rather than the required target .NET runtime.

For example, you can download the System.Text.Json package and open the archive with a file archiver application. If you navigate to the lib directory, you can see that the assembly is still built for .NET 8, .NET 9, .NET Framework 4.6.2, and .NET Standard 2.0

There is still a version of the System.Text.Json.dll assembly built for .NET 8 and when this package is installed in a .NET 8 project, it will automatically load the assembly built for that target framework.

Considering the above, you can still use the Telerik.Reporting package in your .NET 8 applications but in order to not have conflicts, update the version of the System.Text.Json package installed in the project to 9.0.2 or newer. 

I hope that the provided information is helpful. Please let me know if I can assist with anything else.

Regards,
Dimitar
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

ClausDC
Top achievements
Rank 1
Iron
Iron
commented on 04 Apr 2025, 09:48 AM | edited

We don't reference assemblies like System.Text.Json (this was just an example, there are more assemblies) explicitly, they are transitive packages or come from the set target .NET version. I will try an explicit reference ("top-level") on these packages like System.Text.Json with a higher version like you suggested.
Tags
General Discussions
Asked by
ClausDC
Top achievements
Rank 1
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or