如何修复Unity 3d“错误CS1703:具有相同标识的程序集”System.Xml.Linq“已被导入。”

如何修复Unity 3d“错误CS1703:具有相同标识的程序集”System.Xml.Linq“已被导入。”

问题描述:

我被困在这里,我不知道如何解决这个问题。更新我统一到Unity 2017.1.0f3和更新/升级我的项目现在我得到这个错误:如何修复Unity 3d“错误CS1703:具有相同标识的程序集”System.Xml.Linq“已被导入。”

Error CS1703: An assembly `System.Xml.Linq' with the same identity has already been imported. Consider removing one of the references Assets/Plugins/System.Xml.Linq.dll (Location of the symbol related to previous error) C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity\System.Xml.Linq.dll (Location of the symbol related to previous error)

是否有人可以帮助这一点?

我相信这意味着两个dll具有相同的签名。在我的代码中,nunit.framework.dll出现在两个不同的文件夹中并被导入。注:名称不一样 - >一个名为nunit.framework.dll,另一个名称是123nunit.framework.dll。但是,他们的签名似乎是一样的。我怀疑123nunit.framework.dll是从Unity Store购买的,而nunit.framework.dll现在是Unity的一部分。

这发生在5.1至2017.1

希望这有助于更新。