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?