Hololens Build Failing-命令AssemblyConverter.exe退出,代码为1 [英] Hololens Build Failing - The command AssemblyConverter.exe exited with code 1

查看:127
本文介绍了Hololens Build Failing-命令AssemblyConverter.exe退出,代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新到最新版本的VS 2017(版本15.3.2)之后,我从Unity生成的Hololens构建不断失败,并显示以下消息:

After updating to the latest version of VS 2017 (version 15.3.2) my Hololens builds generated from Unity keep failing with this message :


命令 C:\TestFile\HoloBuild\VSApp\Unity\工具\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\ \数据\播放引擎\地铁支持\播放器\UAP\dotnet\x86\调试 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.dll C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.UI.dll C:\TestFile\HoloBuild\VSApp\ oloHoloBuild\UnityEngine.HoloLens.dll C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEng ine.Networking.dll C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.VR.dll退出,代码为1。HoloBuild C:\TestFile\HoloBuild\VSApp\HoloBuild oloHoloBuild.csproj 292

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.dll" "C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.UI.dll" "C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.HoloLens.dll" "C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.Networking.dll" "C:\TestFile\HoloBuild\VSApp\HoloBuild\UnityEngine.VR.dll"" exited with code 1. HoloBuild C:\TestFile\HoloBuild\VSApp\HoloBuild\HoloBuild.csproj 292

我在生成输出中遇到此错误:

I have this error in the build output :


1> System.Collections.Generic.KeyNotFoundException:字典中不存在给定的键。 (TaskId:275)

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

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

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

1>(TaskId:275)

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

1>。 ctor(String projectLockFile,String wantedUWPSDKVersion)(TaskId:275)

1> at Unity.UWPAssemblyResolver..ctor(String projectLockFile, String desiredUWPSDKVersion) (TaskId:275)

1>在Unity.OperationContext.SetPlatform(平台平台,String projectLockFile,String uwpSDK)(TaskId:275 )

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

1>(TaskId:275)

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

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

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

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

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

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

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

我尝试了许多新项目,但结果相同,但出现了相同的错误消息。

I have tried with many fresh projects but the result is the same with the same error message.

正如某些线程所建议的那样,我尝试删除并添加一些引用,并尝试弄乱Unity中的某些构建设置。

As suggested in some threads, I tried removing and adding back some references, tried messing with some build settings in Unity.

我完全不确定这个问题是由于更新了Visual Studio。
有人遇到过同样的问题吗?
我怎么能建立我的项目?

I'm not sure at all that this issue is because of updating Visual Studio. Has anyone faced the same issue ? How may I be able to build my projects ?

推荐答案

此问题与Unity中的一个错误有关,该错误使它不适用于Visual Studio 2017(15.3)。这里有一些关于它的链接。我相信您可以安装Unity补丁,但是我发现最简单的解决方案是将Visual Studio降级到2015版本。如果您可以访问Visual Studio 2017(15.2),它也可以正常工作。

This problem is related to a bug in Unity that makes it not work with Visual Studio 2017 (15.3). Here are some links regarding it. I believe you can install a Unity patch, but the easiest solution I found was to downgrade Visual Studio to the 2015 version. If you have access to Visual Studio 2017 (15.2) that would work as well.

以下是相关链接:


  1. https://forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/

https://forum.unity3d.com/threads/build-error-assembly-csharp-dll-could-not-be-found-hololens.458493/

希望这会有所帮助!

这篇关于Hololens Build Failing-命令AssemblyConverter.exe退出,代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆