问题描述
在更新到最新版本的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 :
我在生成输出中遇到此错误:
I have this error in the build output :
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.
以下是相关链接:
希望这会有所帮助!
这篇关于Hololens Build Failing-命令AssemblyConverter.exe退出,代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!