2017-07-29 232 views
1

我遇到了与Unity.Compat.dll问题。 此dll包含System.Reflection库。Unity + Firebase - Unity.compat冲突

如果我想使用:System.Reflection.TypeInfo 例如,我不能,因为它会与Unit.Compat.dll碰撞

这是我收到的时候编译错误试图使用TypeInfo:

Error CS0433 The type 'TypeInfo' exists in both 'Unity.Compat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 

其他人遇到此问题?

任何解决方法?

+0

您是否找出了解决此问题的方案? – Vidur

+0

除了删除重复的声明之外,没有办法解决这个问题。 (我们不能,因为它在DLL中)以前,他们有他们自己的'Task'类,它们在内部使用,但是这使得.NET 4.6用户无法使用C#的'Task'。这个问题已经解决了,但是更多的类如'Unity.Compat'中的'Tuple'。他们在他们的Firebase dll内部使用它,这很好,因为.dll无法看到外部世界的C#的'Tuple',但是这使得程序的其余部分无法使用'Tuple',因为我们看到了它的两个声明。 – 5argon

回答

0

尝试从项目中移除资产/ Firebase文件夹,然后重新导入Firebase Unity SDK。

+0

试过了,没有工作 –