unity3d MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

时间:2021-04-22 21:03:22

在unity3d 编辑器 MonoDevelop 中引用外部自定义dll文件报错:are you missing an assembly reference?

因为unity还停留在.NET Framework3.5,所以需要在Visual Studio项目中设置

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

或者选择

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

然后点击生成按钮,生成成功后,在目录下找到该dll文件

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

拷贝到unity工程目录 Assets/Plugins目录下,

在MonoDevelop工程中引用,

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

unity3d  MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?

引用成功

注:有时候unity中这样处理了,但unity控制台这个错误还是存在

,这个时候需要重启unity,重启之后错误消除。