Skip to content

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

Merged
lupino3 merged 1 commit intomainfrom
dev/andreas/load-builtin-newtonsoft-json
Jul 8, 2022
Merged

feat: use built-in Newtonsoft.Json if possible#43
lupino3 merged 1 commit intomainfrom
dev/andreas/load-builtin-newtonsoft-json

Conversation

@lupino3
Copy link
Member

@lupino3 lupino3 commented Jul 8, 2022

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 lupino3 merged commit 0a5aa0a into main Jul 8, 2022
@lupino3 lupino3 deleted the dev/andreas/load-builtin-newtonsoft-json branch July 8, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant