Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

DLL clash when using com.unity.collections because it uses an internal Newtonsoft JSON packageΒ #86

@nothke

Description

@nothke

Expected behavior

No clashing DLLs

Actual behavior

Error caused by 2 same DLLs. One coming from this package and the other from Unity's internal Newtonsoft JSON package.

Steps to reproduce

  • New project
  • Import jillejr.newtonsoft.json-for-unity via UPM
  • Import Collections package via the package manager (tick show preview packages)
  • Clash!

Details

Unity has an internal Netwonsoft JSON package, which is used by com.unity.test-framework.performance. Meanwhile, Unity Collections depend on that performance testing framework package, and hence will use the internal Newtonsoft JSON. It is impossible to decouple those, therefore it is not possible to use advanced DOTS collections with this repo in the same project.

As Unity has it's own Newtonsoft JSON package, they for sure will use this in the future. Is it possible to change/rename the dlls in this repo so they don't clash with the Unity's own Newtonsoft JSON package?


Edit by @jilleJr: If you stumble upon this issue, please see @kjungyoun's solution at the bottom of this issue thread: #86 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions