-
Notifications
You must be signed in to change notification settings - Fork 10
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
Plugin Reload: Migrate to System.Text.Json #390
Comments
Should not start working on this until we have appropriate test coverage: #463 |
Just saw this! I ended up having to use Jil instead: https://github.com/kevin-montrose/Jil |
I had a hard time working with JIL - the serialization it uses is pretty finicky with what I was doing. If you're doing simple (de)serialization it's probably fine but it wasn't covering my use case. I did find a hack that works to clear the cache during a Dispose call in a service. It ain't pretty but even Microsoft acknowledges it: https://github.com/dotnet/runtime/blob/dae890906431049d32e24d498a1d707a441a64a8/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CacheTests.cs#L213
So far so good but I need to do further testing. |
With the addition of the NUI API, an extra dependency was added to Newtonsoft.Json due to its simplicity for serializing polymorphic objects.
Unfortunately it has a few issues from sometimes holding hard dependencies to plugins, preventing AssemblyLoadContexts from being unloading and causing hot reloads to fail.
The text was updated successfully, but these errors were encountered: