Skip to content

feat: use built-in Newtonsoft.Json if possible - #43

Merged
Andrea Spadaccini (lupino3) merged 1 commit into
mainfrom
dev/andreas/load-builtin-newtonsoft-json
Jul 8, 2022
Merged

feat: use built-in Newtonsoft.Json if possible#43
Andrea Spadaccini (lupino3) merged 1 commit into
mainfrom
dev/andreas/load-builtin-newtonsoft-json

Conversation

@lupino3

@lupino3Andrea Spadaccini (lupino3) commented Jul 8, 2022

Copy link
Copy Markdown
Member

If PowerShell ships with a version of Newtonsoft.Json, use it through an assembly binding.
If not, try to load the one we ship with the library.

This will reduce the likelihood of conflicts at assembly loading time, and makes the library
work under Powershell 6.0.x. Fixes#36.

Also, stop whenever there is an error importing the module, to make
debugging easier.

If PowerShell ships with a version of Newtonsoft.Json, use it through an assembly binding.
If not, try to load the one we ship with the library.
This will reduce the likelihood of conflicts at assembly loading time.
Also, stop whenever there is an error importing the module, to make
debugging easier.
@lupino3
Andrea Spadaccini (lupino3) deleted the dev/andreas/load-builtin-newtonsoft-json branch July 8, 2022 12:03
Sign up for freeto 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.

Verify and fix compatibility with different PowerShell Core versions

1 participant

@lupino3