我在Unity引擎中构建项目时遇到了问题。我试图在Qlik Sense之间建立连接,因此需要一些dll(我认为这是我问题的根源)。 构建时,我在控制台中遇到两个错误:
ArgumentException:程序集Microsoft.VisualBasic被引用 Qlik.Sense.Communication('Assets / bin / Qlik.Sense.Communication.dll')。 但是不允许包含或无法找到dll。 UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath,System.Collections.Generic.List'1 [T] alreadyFoundAssemblies,System.String [] allAssemblyPaths, System.String [] foldersToSearch, System.Collections.Generic.Dictionary'2 [TKey,TValue]缓存, UnityEditor.BuildTarget target)(at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath,System.Collections.Generic.List`1 [T] alreadyFoundAssemblies,System.String [] allAssemblyPaths, System.String [] foldersToSearch, System.Collections.Generic.Dictionary'2 [TKey,TValue]缓存, UnityEditor.BuildTarget target)(at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy(System.String [] paths,System.String [] foldersToSearch,UnityEditor.BuildTarget 目标)(at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179) UnityEditor.HostView:OnGUI()
直接在
之后UnityEditor.BuildPlayerWindow + BuildMethodException:Build失败 错误。在 UnityEditor.BuildPlayerWindow + DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions选项)[0x001b9] in C:\ buildslave \团结\建立\编辑\单声道\ BuildPlayerWindowBuildMethods.cs:162 在UnityEditor.BuildPlayerWindow.CallBuildMethods(System.Boolean askForBuildLocation,UnityEditor.BuildOptions defaultBuildOptions) [0x00050] in C:\ buildslave \团结\建立\编辑\单声道\ BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()
我使用的Unity版本是2017.1.0f3,并且应该与4.6 .NET兼容(我也在编辑中设置 - >项目设置 - >播放器,这不是问题。)< / p>
如果您认为它是必要的,我可以粘贴一些代码,但我认为问题存在于Visual Studio或Unity中。
任何提示都表示赞赏! /埃里克
答案 0 :(得分:0)
正如Equalsk所暗示: 将.dll添加到Unity项目内的bin文件夹中。