"The dll is not allowed to be included or could not be found" 在构建 unity3d SignalR 时

"The dll is not allowed to be included or could not be found" while building unity3d 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。所以,我在播放器设置中更改了它。我在编辑器中单击播放时没有任何错误,但是当我想构建它时,这就是它失败的地方。

希望有人能帮助我解决这个问题。谢谢

我在另一个帖子中找到了这个问题的答案。

你可以在这个 中找到它。

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