Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Newtonsoft.Json #687

Merged
merged 6 commits into from
Sep 27, 2022
Merged

Remove Newtonsoft.Json #687

merged 6 commits into from
Sep 27, 2022

Conversation

seesharper
Copy link
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.

@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

NiSHoW commented Oct 26, 2022

when will this change be released?

@seesharper
Copy link
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