Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Unity UWP build fails in visual studio

Discussion in 'Editor & General Support' started by Astrobyte_, Sep 16, 2018.

  1. Astrobyte_

    Astrobyte_

    Joined:
    Jun 30, 2015
    Posts:
    6
    I am currently trying to build my game for xbox one, using UWP build module. The app export succeeds, but when attempting to build for a remote or local machine in VS 2017, the build fails with the following error.

    Error The command ""C:\Users\USERNAME\Unity Game Builds\GAMENAME\Builds\XboxBuilds\Trial8\Unity\Tools\AssemblyConverter.exe" -platform=uap -bits=64 -configuration=Release -removeDebuggableAttribute=False -uwpsdk=10.0.17134.0 -path="." -path="C:\Program Files\Unity\Hub\Editor\2018.2.8f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x64\Release" -workingDir="C:\Users\USERNAME\Unity Game Builds\GAMENAME\Builds\XboxBuilds\Trial8\GAMENAME\\" "@C:\Users\USERNAME\Unity Game Builds\GAMENAME\Builds\XboxBuilds\Trial8\GAMENAME\AssemblyConverterArgs.txt"" exited with code 1. GAMENAME C:\Users\USERNAME\Unity Game Builds\GAMENAME\Builds\XboxBuilds\Trial8\GAMENAME\GAMENAME.csproj 509

    (I replaced my name with ''USERNAME" and the project name with "GAMENAME")
    I'm on unity version 2018.2.8.f1 and the latest version of VS. Here are my player settings:
    https://gyazo.com/42670a9165555e34814b996a30bb305d

    Any help would be very appreciated. I'm just trying to test my game on my Xbox one. Thanks in advance to any replies.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,695
    It's likely you have an incompatible with .NET scripting backend DLL in your project somewhere. Do you get any errors in the console when you build from Unity?

    An easy fix would be to switch to IL2CPP scripting backend.