Getting error in compiling Unity UWP build with Visual Studio 2017.3

陌路散爱 提交于 2019-11-30 22:20:07

问题


I am porting Unity game to Universal Windows Platform. But during creating build in Visual Studio 2017.3, I got this error:

The command ""F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\project.lock.json" -bits=64 -configuration=Debug -removeDebuggableAttribute=False -path="." -path="..\Players\UAP\x64\Debug" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\Assembly-CSharp-firstpass.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\Assembly-CSharp.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\Assembly-UnityScript-firstpass.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\Assembly-UnityScript.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\UnityEngine.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\UnityEngine.UI.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\UnityEngine.Networking.dll" "F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\LightMixerScripts.dll"" exited with code 1. Police Sniffer Dog Chase F:\Games 4\Police Sniffer Dog ChaseV1.0\WinStore_10\Police Sniffer Dog Chase\Police Sniffer Dog Chase.csproj 279

I remove all errors in Unity now. Everything is working fine in Unity but Visual Studio generate this error during compilation. Its happened with all games I try to compile with Visual Studio.


回答1:


According to your error, it seems you are having the same issue here: .NET scripting backend and Visual Studio 2017.3 incompatibility.

There is a compatibility issue between Unity and Visual Studio 2017 update 3 when targeting UWP, using .NET scripting backend (IL2CPP scripting backend is not affected) and building generated Visual Studio project.

To fix this issue, you can try with IL2CPP scripting backend, or upgrade Unity to the following version:

  • 5.5 version with the fix: 5.5.4p5
  • 5.6 version with the fix: 5.6.3p2
  • 2017.1 version with fix: 2017.1.0p5
  • 2017.2 version with fix: 2017.2.0b7


来源:https://stackoverflow.com/questions/46068744/getting-error-in-compiling-unity-uwp-build-with-visual-studio-2017-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!