引用DLL打包出错”But the dll is not allowed to be included or could not be found.“

来源:互联网 发布:seo 工程师 编辑:程序博客网 时间:2024/05/21 22:07

报错

ArgumentException: The Assembly System.Drawing is referenced by NPOI ('Assets/Plugins/Net20/NPOI.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:146)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:152)UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:184)UnityEditor.HostView:OnGUI()

这里写图片描述

解决方案

点击Player Settings按钮,找到Api Compatibility Level选项,选择”.Net 2.0”,而非”.Net 2.0 Subset”

参考:

http://www.cnblogs.com/zhuweisky/p/3145130.html

0 0
原创粉丝点击