在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的版本降低。

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-01-31
  • 2021-05-16
猜你喜欢
  • 2022-03-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-12-11
相关资源
相似解决方案