Skip to content

Remove Newtonsoft.Json #687

Merged
filipw merged 6 commits into
masterfrom
remove-newtonsoft
Sep 27, 2022
Merged

Remove Newtonsoft.Json #687
filipw merged 6 commits into
masterfrom
remove-newtonsoft

Conversation

@seesharper
Copy link
Copy Markdown
Collaborator

@seesharper seesharper commented Sep 26, 2022

This PR removes the dependency we have on Newtonsoft.Json and replaces the code with System.Text.Json.
Newtonsoft.Json has caused quite a few problems over the years since we specify one version in dotnet-script while a script might pull in another version.

System.Text.Json is pulled in by default when the host is net6.0 or net7.0. Dotnet.Script.Core also support netstandard2.0 and an conditional package-reference has been added for System.Text.Json.

Note: We are not yet completely free from Newtonsoft.Json yet since NuGet.ProjectModel also has this in its dependency graph, but we have done what we can on the dotnet-script side of things and we can close #674 for now.

@seesharper seesharper requested a review from filipw September 26, 2022 11:25
@filipw filipw merged commit 16286aa into master Sep 27, 2022
@filipw filipw deleted the remove-newtonsoft branch September 27, 2022 12:16
@NiSHoW
Copy link
Copy Markdown

NiSHoW commented Oct 26, 2022

when will this change be released?

@seesharper
Copy link
Copy Markdown
Collaborator Author

We will release a new version just about when .Net 7 goes RTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the dependency on Newtonsoft.Json

3 participants