In Unity 2021, with 'PlayMaker Datamaker' installed in the Assets folder, the Json subfolder creates the two following errors:
Library/PackageCache/com.unity.services.core@1.4.2/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(51,24): error CS0433: The type 'JObject' exists in both 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=***************' and 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=***************'
Library/PackageCache/com.unity.services.core@1.4.2/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(74,24): error CS0433: The type 'JObject' exists in both 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=***************' and 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=***************'
Respectively at the methods GetPackageJObject() and GetComponentJObject() of the DependencyTreeExtensions.cs script.
The
Git repo PlayMaker--DataMaker--U4.3.4.SubModule- indicates that the Json folder was updated 3 years ago:
Changed Newtonsoft dll for compatibility
Unity has its own Newtonsoft Json, installed as dependency (see package manager), version 3.0.2.
For now I have excluded (~) the folder EditorOnly that contains the Newtonsoft.Json.Net20.dll file, but that's temporary. The actions dependent on this library are not going to work but at least actions in FSMs won't be throwing errors because a script is missing but the 'Net.' namespace can't be accessed for now. It's just a slightly better situation because the console remains silent.
What should be done to correct this error?
Could a newer version of the Datamaker extension be made to point at the package's content instead?