Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.12k stars 4.15k forks source link

Ambiguousity serialization library namespace when import to unity #6140

Closed LeThaiThinh18021228 closed 1 month ago

LeThaiThinh18021228 commented 1 month ago

Describe the bug Ambiguous library namespace when import this package to unity To Reproduce Just import this package to unity using package manager.

Console logs / stack traces CS0433 The type 'DataContractJsonSerializerSettings' exists in both 'System.Private.DataContractSerialization, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Assembly-CSharp CS0433: The type 'DataContractJsonSerializer' exists in both 'System.Private.DataContractSerialization, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

LeThaiThinh18021228 commented 1 month ago

Just remove dependency System.Private.Serialization