码迷,mamicode.com
首页 > 数据库 > 详细

Unity3D 程序打包报错(程序是连接数据库进行处理的)

时间:2014-08-13 18:03:17      阅读:443      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   io   数据   ar   cti   

打包这个Unity3D的程序时出现错误(程序是由XML数据改成连接数据库):

ArgumentException: The Assembly System.Configuration is referenced by System.Data. 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) (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/AssemblyHelper.cs:72)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/AssemblyHelper.cs:75)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/AssemblyHelper.cs:75)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/AssemblyHelper.cs:107)
UnityEditor.HostView:OnGUI()

解决办法:

在player settings里将api capability level里的.Net 2.0 Sub 改成.Net 2.0就行了

 

Unity3D 程序打包报错(程序是连接数据库进行处理的),布布扣,bubuko.com

Unity3D 程序打包报错(程序是连接数据库进行处理的)

标签:style   blog   color   os   io   数据   ar   cti   

原文地址:http://www.cnblogs.com/fm168/p/3910333.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!