Hololens Build Failed - AssemblyConverter.exe command exited with code 1

After upgrading to the latest version of VS 2017 (version 15.3.2), my Hololens builds created from Unity continue to work with this message:

The command "C: \ TestFile \ HoloBuild \ VSApp \ Unity \ Tools \ AssemblyConverter.exe" -platform = uap -lock = "C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ project.lock.json" - bits = 32 -configuration = Debug -removeDebuggableAttribute = False -uwpsdk = 10.0.15063.0 -path = "." -path = "C: \ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ MetroSupport \ Players \ UAP \ dotnet \ x86 \ Debug" "C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ Assembly-CSharp.dll" "C : \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEngine.dll "" C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEngine.Analytics.dll "" C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ nunit.framework " "C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEngine.UI.dll" "C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEngine.HoloLens.dll" "C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEng. Networking.dll "" C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ UnityEngine.VR.dll "" exits with code 1 HoloBuild C: \ TestFile \ HoloBuild \ VSApp \ HoloBuild \ HoloBuild.csproj 292

I have this error in the output of the assembly:

1> System.Collections.Generic.KeyNotFoundException: this key was not in the dictionary. (TaskId: 275)

1> in System.Collections.Generic.Dictionary`2.get_Item (TKey key) (TaskId: 275)

1> in UnityEditor.Scripting.Compilers.NuGetPackageResolver.Resolve () (TaskId: 275)

1> in Unity.UWPAssemblyResolver..ctor (String projectLockFile, String wishUWPSDKVersion) (TaskId: 275)

1> on Unity.OperationContext.SetPlatform (platform platform, String projectLockFile, String uwpSDK) (TaskId: 275)

1> in Unity.ParseArgsStep.Execute () (TaskId: 275)

1> in Unity.Step.Execute (OperationContext operationContext, IStepContext previousStepContext) (TaskId: 275)

1> in Unity.Operation.Execute () (TaskId: 275)

1> in Unity.Program.Main (String [] args) (TaskId: 275)

I tried many new projects, but the result is the same with the same error message.

As suggested in some threads, I tried to remove and add some links, tried to mess around with some build settings in Unity.

I am not sure if this problem is related to updating Visual Studio. Has anyone encountered the same problem? How can I build my projects?

+4
source share
2 answers

This problem is due to a bug in Unity that does not allow working with Visual Studio 2017 (15.3). Here are some links. I believe you can install the Unity patch, but the easiest solution I have found is to downgrade Visual Studio to 2015. If you have access to Visual Studio 2017 (15.2), which will also work.

Here are the links:

Hope this helps!

+5
source

I ran into the same problem and couldn't solve it from 3 days, I used Unity 5.6.1f1, Unity 5.6.2f1, Unity 2017.1.0f3 and Unity 2017.1.0p3 and the new Unity 2017.2.0b10 (64-bit). I deleted and rebuilt the .sln file several times, even created several projects from scratch. The problem persists.

I looked at topics / solutions here, and in other forums, and tried them, but the problem is still there. 1 thing is for sure that I am not doing the right settings or something is very wrong because I reinstalled Unity, Visual Studio.

Finally, he worked with VS 2015 SP3 and the Windows SDK 10.0.14393 https://forum.unity3d.com/threads/build-error-assembly-csharp-firstpass-dll-could-not-be-found-hololens.488357/

0
source

All Articles