請教大家個問題,最近在學socket,使用protobuf遇到的問題:
我是用的是Unity2017版本,使用的Google.Protobuf.dll支持.NET4.6及以上,然后就在在Unity中修改Scripting Runtime version為.NET4.6,再匯入Google.Protobuf.dll報錯:
The type System.IEquatable1<T>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
這個該怎么解決?
uj5u.com熱心網友回復:
找到報錯的代碼所在工程,添加對System.dll的參考uj5u.com熱心網友回復:

我添加后報錯:error CS1703: An assembly `System' with the same identity has already been imported. Consider removing one of the references
Assets/Plugins/System.dll (Location of the symbol related to previous error)
System.dll (Location of the symbol related to previous error)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/9375.html
標籤:Unity3D
上一篇:unity3d打開專案閃退
下一篇:Unity如何實作裁剪的效果?
