Using Unity 2017.2.0b2 with HoloToolkit causes Unity to not build project
See original GitHub issueOnce I add the HTK to my project, even if I am not using anything in it, and I try to build for the HoloLens from Unity, it fails with the following errors, however, if I pull the HTK out of my assets folder, it builds just fine. I just tried this with the very latest merged code as of noon on 7/13 and am still seeing the same behavior.
KeyNotFoundException: The given key was not present in the dictionary. System.ThrowHelper.ThrowKeyNotFoundException () (at <aa1756d827e14afe8f4b9355672b2ab4>:0) System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <aa1756d827e14afe8f4b9355672b2ab4>:0) MetroCSharpVisualStudioSolutionCreator.WriteSolutionFile (System.String solutionFileName, UnityEditor.Scripting.ScriptCompilation.ScriptAssembly[] csharpAssemblies) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/MetroCSharpVisualStudioSolutionCreator.cs:166) MetroCSharpVisualStudioSolutionCreator.CreateSolutionFileFrom () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/MetroCSharpVisualStudioSolutionCreator.cs:716) PostProcessWSA.CreateVisualStudioSolution () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWSA.cs:320) PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:221) UnityEditor.WSA.BuildPostprocessor.DoPostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:142) UnityEditor.WSA.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:149) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Confirming that I also have this issue with 2017.2.0b2 and latest HTK
This appears to be a bug in Unity. If the option Unity C# Projects is selected then the build fails with the above errors, however leaving this unchecked allows the build to complete successfully. Closing this issue and opening bug with Unity.