question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Unity 2017.2.0b2 with HoloToolkit causes Unity to not build project

See original GitHub issue

Once 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:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
camnewnhamcommented, Jul 14, 2017

Confirming that I also have this issue with 2017.2.0b2 and latest HTK

1reaction
jessemccullochcommented, Jul 14, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build even an empty project.
The steps I am taking are: New unity project. Build for UWP->Hololens. This works. Open resulting solution in visual studio and try to...
Read more >
unity game engine - holotoolkit failed to build
Just checking, you are using github.com/Microsoft/MixedRealityToolkit-Unity ? Holotoolkit can also mean an old similar but unmaintained ...
Read more >
Visual Studio project generation for Windows
Go to File > Build Settings > Target Platform. Select the Windows build target. Enable the Create Visual Studio Solution build setting. Select...
Read more >
Manual: Build Settings
Unity can build your application for different platforms and with different settings. This documentation describes how to define the scenes, target platform ...
Read more >
How to Combine the Mixed Reality Toolkit, Unity 2017 and ...
After the import process, your Unity will get the HoloToolkit menu, plus the 3 HoloToolkit subfolders in your Assets directory. Open to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found