Qlik Sense .dll 构建错误(使用 Unity)
Qlik Sense .dll building error (with Unity)
我在 Unity 引擎中构建项目时遇到了问题。我正在尝试在 Qlik Sense 之间建立联系,因此需要一些 dll(我认为这是我的问题的根源)。
构建时,我在控制台中收到两个错误:
ArgumentException: The Assembly Microsoft.VisualBasic is referenced by
Qlik.Sense.Communication ('Assets/bin/Qlik.Sense.Communication.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[T]
alreadyFoundAssemblies, System.String[] allAssemblyPaths,
System.String[] foldersToSearch,
System.Collections.Generic.Dictionary'2[TKey,TValue] cache,
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] cache,
UnityEditor.BuildTarget target) (at
C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[]
paths, System.String[] foldersToSearch, UnityEditor.BuildTarget
target) (at
C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()
并在
之后
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with
errors. at
UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer
(UnityEditor.BuildPlayerOptions options) [0x001b9] in
C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean
askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions)
[0x00050] in
C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()
我使用的Unity版本是2017.1.0f3,应该兼容4.6.NET(我在编辑->项目设置->播放器里也设置了,所以不是问题)。
如果您认为有必要,我可以粘贴一些代码,但我认为问题出在 Visual Studio 或 Unity 中。
如有任何提示,我们将不胜感激!
/埃里克
正如 Equalsk 暗示的那样:
将 .dll 添加到 Unity 项目中的 bin 文件夹中。
我在 Unity 引擎中构建项目时遇到了问题。我正在尝试在 Qlik Sense 之间建立联系,因此需要一些 dll(我认为这是我的问题的根源)。 构建时,我在控制台中收到两个错误:
ArgumentException: The Assembly Microsoft.VisualBasic is referenced by Qlik.Sense.Communication ('Assets/bin/Qlik.Sense.Communication.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[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary'2[TKey,TValue] cache, 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] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179) UnityEditor.HostView:OnGUI()
并在
之后UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()
我使用的Unity版本是2017.1.0f3,应该兼容4.6.NET(我在编辑->项目设置->播放器里也设置了,所以不是问题)。
如果您认为有必要,我可以粘贴一些代码,但我认为问题出在 Visual Studio 或 Unity 中。
如有任何提示,我们将不胜感激! /埃里克
正如 Equalsk 暗示的那样: 将 .dll 添加到 Unity 项目中的 bin 文件夹中。