Skip to content

Can Json.Net.Unity3D run with the .NET 2.0 subset? #28

Description

@rockobonaparte

I had managed to get Newtonsoft.Json to run in a Unity build for my save/load serialization subsystem. However, it would crash cryptically and horrifically if I ran it as a .NET 2.0 subset build based on the "Api Compatibility Level" in the player settings. If I instead opted for the full .NET 2.0 compatibility, the crashes stopped. I decided that was enough luck for me and swapped it out for Json.Net.Unity3D, but I have had the same crash with the same workaround.

It is a hard problem to nail down because it looks like it's ultimately dying in Mono. I only get a binary dump and it never takes me to the real scene of the crime; even the Unity symbol server isn't helpful here. It's also possible this is some interplay with other things in the project, but I do know it dies in my loader's constructor approximately when it wants to mention a JObject.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions