This is a migrated thread and some comments may be shown as answers.

Newtonsoft.Json dependence

4 Answers 389 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ion
Top achievements
Rank 1
Ion asked on 21 Jan 2021, 07:23 AM

Hi,

 

After 2.21.0 update, I noticed there is still a dependency of Newtonsoft.Json package in Telerik.DataSource, increasing the application payload with > 600k. Since .Net 5 moved to System.Text.Json context, maybe that dependency could be eliminated.

 

Thanks,

Ion

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Jan 2021, 08:23 AM

Hi Ion,

Thank you for noticing this. It is a remnant that should not be used, in the last year we've been using the System.Text.Json serializer that comes with the framework and we've simply missed the packagereference to newtonsoft. If your app does not use newtonsoft, the linker should remove it for a wasm app, and for a server app it should not be too much of a problem. That said, I've logged a task for it to be removed.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Ion
Top achievements
Rank 1
answered on 21 Jan 2021, 09:31 PM

Hi Marin,

Of course, that dependency is not a real problem, so we will wait to be eliminated in the next version(s).

 

Thanks,

Ion

0
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
answered on 16 Apr 2021, 12:00 PM

I use Telerik.UI.For,Blazor 2.23.0 and found that Telerik.DataSource still depend on Newtonsoft.Json 12.0.2

This is a issue for us because when build the asp.net core server project, this library is copied on server bin, but the server project depend on a newer version of the same library and it produce a dependency version issue.

How to avoid the reference of Newtonsoft.Json 12.0.2?

Thanks

0
Marin Bratanov
Telerik team
answered on 16 Apr 2021, 12:08 PM

Hello Claudio,

Our next release (2.24.0) will not have the newtonsoft.json dependency. It is scheduled for mid-May.

If this is urgent for you, in the meantime you can try a bindingRedirect to see if that can help with the assembly references, articles like this one, this one and this one can be starting points for that.

Regards,
Marin Bratanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
General Discussions
Asked by
Ion
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Ion
Top achievements
Rank 1
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Share this question
or