zoukankan      html  css  js  c++  java
  • Unity3d Editor使用cs文件与Plugins dll文件冲突的问题

    在Plugins目录下导入LitJson.dll文件后,系统提示

    Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'LitJSON'.

      at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0

      at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0

    经过调试发现造成错误的是在Editor目录下的CS文件,无论CS文件内容是什么只要是.cs扩展名的文件存在Editor目录下系统就会报错。

    怀疑是Editor目录下如果有.cs文件u3d就会加载某系程序集,而就是这个程序集与LitJson.dll的程序集冲突。

    不完美的解决方法,将Editor 目录下的.cs文件删除掉或者将其改为js文件。

    将继续探索解决之道。

    终极解决方法就是将Litjson的版本降低。

  • 相关阅读:
    反射和内置方法重写
    封装
    接口与抽象类 、多态
    面向对象--继承和组合
    python对象
    模块导入
    python序列化模块
    time random sys os 模块
    python re模块和collections
    python各种推导式
  • 原文地址:https://www.cnblogs.com/88999660/p/2955293.html
Copyright © 2011-2022 走看看