"不允许包含或无法找到dll"同时建立unity3d SignalR

时间:2017-12-27 01:45:47

标签: android unity3d asp.net-core-signalr

我使用unity 2017.2并在构建APK文件时遇到此错误

ArgumentException: The Assembly System.Reflection.Emit is referenced by 
Microsoft.AspNetCore.SignalR.Core 
('Assets/Plugins/Microsoft.AspNetCore.SignalR.Core.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:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, 
System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at 
C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

我的项目需要使用.Net 4.6。所以,我在播放器设置中改变了它。当我在编辑器中点击播放时,我没有任何错误,但是当我想要构建它时,这就是它失败的地方。

希望有人可以帮助我。谢谢

1 个答案:

答案 0 :(得分:0)

我在另一个线程中找到了该问题的解决方案。

您可以在此link中找到它。

希望有人可以从我的回答中受益。