爱玩科技网
您的当前位置:首页解决unity中出现The type or namespace name `MySql' could not be found. Are you missing an assembly referen

解决unity中出现The type or namespace name `MySql' could not be found. Are you missing an assembly referen

来源:爱玩科技网

unity报错:

 

错误原因:

Framework target is set to Mono/.NET 3.5, however in Unity 5.5 while loading this dll, the following error appears: "Plugin targets .NET 4.x and is marked as compatible with Editor. Editor can use assemblies targetting .NET 3.5 or lower, please unselect Editor as compatible platform."

Steps to reproduce:
1. Open User's attached project with Unity 5.5 or newer
2. See the Error in the Console

Result: "Serializer" dll fails to load with "Plugin targets .NET 4.x and is marked as compatible with Editor..." message.

Reproduced with: 2017.1.0a3, 5.6.0f1, 5.5.2p2.
Not reproduced with: 5.4.5f1.

Note:
dll loads successfully with Unity 5.4
target framework for each project is set to "Mono/.NET 3.5"

翻译

因篇幅问题不能全部显示,请点此查看更多更全内容