在程序集转换期间,UWP的构建失败

时间:2016-07-28 11:23:07

标签: unity3d visual-studio-2015 uwp

当我尝试为通用Windows平台构建项目时,我在visual studio中获得以下输出:

1>------ Build started: Project: Projekt, Configuration: Debug x86 ------
1>  No way to resolve conflict between "System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" and "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null". Choosing "System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" arbitrarily.
1>W:\Work\Projekt_2\BuildUWP4\Projekt\App.xaml.cs(99,4,99,62): warning CS0618: 'ApplicationView.SuppressSystemOverlays.set' is obsolete: 'Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.'
1>W:\Work\Projekt_2\BuildUWP4\Projekt\MainPage.xaml.cs(36,57,36,81): warning CS0169: The field 'MainPage.onRotationChangedHandler' is never used
1>  Projekt -> W:\Work\Projekt_2\BuildUWP4\Projekt\bin\x86\Debug\Projekt.exe
1>  UnityInstallationDir "C:\Program Files\Unity\Editor".
1>  UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport".
1>  UnityProjectDir "W:\Work\Projekt_2".
1>  Copying unprocessed assemblies...
1>  Running AssemblyConverter...
1>  Failed to fix references for attribute System.Runtime.InteropServices.TypeLibVersionAttribute
1>  System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
1>     bei Unity.FixReferencesStep.Visit(ICustomAttributeProvider provider, GenericContext context)
1>     bei Unity.FixReferencesStep.ProcessModule()
1>     bei Unity.ModuleStep.Execute()
1>     bei Unity.FixReferencesStep.Execute()
1>     bei Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1>     bei Unity.Operation.Execute()
1>     bei Unity.Program.Main(String[] args)
1>W:\Work\Projekt_2\BuildUWP4\Projekt\Projekt.csproj(271,9): error MSB3073: The command ""W:\Work\Projekt_2\BuildUWP4\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="W:\Work\Projekt_2\BuildUWP4\Projekt\project.lock.json" -bits=32 -configuration=Debug -removeDebuggableAttribute=False -path="." -path="..\Players\UAP\x86\Debug" "W:\Work\Projekt_2\BuildUWP4\Projekt\Assembly-CSharp-firstpass.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\Assembly-CSharp.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\Assembly-UnityScript.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\UnityEngine.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\Newtonsoft.Json.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\UnityEngine.UI.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\TDx.TDxInput.dll" "W:\Work\Projekt_2\BuildUWP4\Projekt\UnityEngine.Networking.dll"" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

我正在使用Windows 10 SDK运行Unity 5.4.0f2和Visual Studio 2015(我能够为UWP构建一个不同的项目,并且Unity 5.3上也会出现错误)。我曾尝试在Visual Studio中清理解决方案并多次从Unity进行新的导出(构建到UWP)。不幸的是,这没有任何帮助。错误消息并没有告诉我任何事情,也没有在谷歌中产生任何好结果。

任何可能导致此问题以及如何解决问题的想法?

0 个答案:

没有答案