Search Unity

Build error

Discussion in 'Windows' started by OnlinedMultimedia, Sep 6, 2017.

  1. OnlinedMultimedia

    OnlinedMultimedia

    Joined:
    Jul 7, 2017
    Posts:
    5
    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
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    2,248
    Can you provide the full output from build log?
     
  3. OnlinedMultimedia

    OnlinedMultimedia

    Joined:
    Jul 7, 2017
    Posts:
    5
    Hi!

    Thanx for your reply.

    Which build log do you need? The Unity or the VS2017 build log?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,436
    Visual Studio. Check the output window in there.
     
  5. OnlinedMultimedia

    OnlinedMultimedia

    Joined:
    Jul 7, 2017
    Posts:
    5
    Thats all. Only 1 error in there...
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    2,248
    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.
     
  7. OnlinedMultimedia

    OnlinedMultimedia

    Joined:
    Jul 7, 2017
    Posts:
    5
    Hello!

    You/re right, sorry! :)

    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!
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,436