【问题标题】:Unity 5.1.1 error : dll is not allowed to be included or could not be foundUnity 5.1.1错误:不允许包含dll或找不到dll
【发布时间】:2015-06-23 11:05:04
【问题描述】:

我是 Unity 新手,我使用 Unity 5.1.1 升级了我的一个应用程序。它在 4.6.2 上运行良好,但升级后出现以下错误

ArgumentException: The Assembly UnityEditor is referenced by iGUI ('Assets/lib/igui/Runtime/iGUI.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:160)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
UnityEditor.HostView:OnGUI()

我尝试将兼容性从“.net 2.0 子集”更改为“.net 2.0”,但没有奏效。

任何帮助将不胜感激

提前致谢

【问题讨论】:

  • 听起来你需要联系开发 iGUI 的人。

标签: ios dll unity3d


【解决方案1】:

我在尝试构建包含自定义 DLL 的游戏时遇到了类似的问题,尽管我的错误消息略有不同。

ArgumentException: The Assembly UnityEditor is referenced by Namespace.In.MyCustom.Dll ('Assets/Dlls/MyCustom.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)
UnityEditor.HostView:OnGUI()

我的 DLL 引用了 UnityEditor.dll,它不会包含在任何统一游戏的发行版本中。 我通过在 Unity 中选择 MyCustom.dll 解决了这个问题,并通过取消选中“任何平台”(见图)停止将其包含在构建过​​程中。

如果你是referenced functionality of UnityEditor.dll in one of your GameObjects,你可能想试试platform dependent compilation

【讨论】:

  • 你先生解决了我的问题。我只将它从“任何”更改为“编辑器”,错误就消失了。谢谢
猜你喜欢
  • 2018-11-25
  • 1970-01-01
  • 1970-01-01
  • 2017-09-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多