Build error

Hi!

Maybe someone can help…

I want to build my app to Windows Phone (with Universal Windows Platform). When Unity finished the build, and i open the result in Visual Studio 2017, it throws an error, after i clicked the Build in VS.

My build datas:

OS: Microsoft Windows [Version 10.0.14393]
Platform: Universal Windows Platform
Target Device: Mobil
Build Type: D3D
SDK: 10.0.15063.0
Build and Run on: Local Machine and Windows Phone

The error message:

Severity Code Description Project File Line Suppression State
Error The command ““D:\WinsowsPhoneBuilds\Earth3\Unity\Tools\AssemblyConverter.exe” -platform=uap -lock=“D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\project.lock.json” -bits=32 -configuration=Master -removeDebuggableAttribute=True -uwpsdk=10.0.15063.0 -path=”." -path=“C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\ARM\Master” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\Assembly-CSharp.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.Analytics.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.Timeline.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\nunit.framework.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.UI.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.HoloLens.dll” “D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\UnityEngine.Networking.dll”" exited with code 1. EGIS_APP D:\WinsowsPhoneBuilds\Earth3\EGIS_APP\EGIS_APP.csproj 275

Anyone could help me?

Thanx

Can you provide the full output from build log?

Hi!

Thanx for your reply.

Which build log do you need? The Unity or the VS2017 build log?

Visual Studio. Check the output window in there.

Thats all. Only 1 error in there…

I think you are pasting error from the “Error list” tab. Instead open “Output” tab (if not present, you can open it via View menu). Paste full build log from there.

Hello!

You/re right, sorry! :slight_smile:

The output window’s content:

Restoring NuGet packages…
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck ‘Allow NuGet to download missing packages during build.’
1>------ Build started: Project: EGIS_APP, Configuration: Debug ARM ------
1>D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\App.cs(56,13,56,71): warning CS0618: ‘ApplicationView.SuppressSystemOverlays.set’ is obsolete: ‘Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.’
1> EGIS_APP → D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\bin\ARM\Debug\EGIS_APP.exe
1> UnityWSAPlayerDir “C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport".
1> UnityProjectDir “”.
1> Copying unprocessed assemblies…
1> Running AssemblyConverter…
1> System.Collections.Generic.KeyNotFoundException: A megadott kulcs nem szerepel a szótárban.
1> a következő helyen: System.Collections.Generic.Dictionary`2.get_Item(TKey key)
1> a következő helyen: UnityEditor.Scripting.Compilers.NuGetPackageResolver.Resolve()
1> a következő helyen: Unity.UWPAssemblyResolver…ctor(String projectLockFile, String desiredUWPSDKVersion)
1> a következő helyen: Unity.OperationContext.SetPlatform(Platform platform, String projectLockFile, String uwpSDK)
1> a következő helyen: Unity.ParseArgsStep.Execute()
1> a következő helyen: Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> a következő helyen: Unity.Operation.Execute()
1> a következő helyen: Unity.Program.Main(String[ ] args)
1>D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\EGIS_APP.csproj(269,9): error MSB3073: The command ““D:\WinsowsPhoneBuilds\Earth7\Unity\Tools\AssemblyConverter.exe” -platform=uap -lock=“D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\project.lock.json” -bits=32 -configuration=Debug -removeDebuggableAttribute=False -uwpsdk=10.0.14393.0 -path=”.” -path=“C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\ARM\Debug” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\Assembly-CSharp.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.Analytics.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.Timeline.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\nunit.framework.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.UI.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.HoloLens.dll” “D:\WinsowsPhoneBuilds\Earth7\EGIS_APP\UnityEngine.Networking.dll”" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Thanx!

You’re hitting this: .NET scripting backend and Visual Studio 2017.3 incompatibility - Unity Engine - Unity Discussions