Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[SOLVED] Cannot build UWP with U2018.3.0f2 for Xbox Live

Discussion in 'Windows' started by sstrong, Jan 1, 2019.

  1. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,258
    Errors include:
    Code (CSharp):
    1. Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(13,61): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    I've seen many others with this issue but can't seems to find a solution.

    Current setup:

    Window 10 Pro 1803

    VS Community 2017 15.9.4
    • UWP Development
    • Windows 10 SDK (10.0.17763.0)
    • VS Tools for Unity
    • Nuget Package Manager
    • NuGet targets and build tasks
    XboxLive 1804 QFE2 package installed
    Scripting Runtime version: .NET 4.x Equivalent
    Scripting Backend: IL2CPP
    API Compatibility Level: .NET 4.x

    I don't have Xbox Live Platform Extensions installed. Now sure if I need these. Also, there isn't a 10.0.17763 version.

    What am I missing?
     
  2. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,258
    For others:

    1. In the Unity project explorer, navigate to Xbox Live\Libs\UnityEditor\NET46 and select all of the DLLs in the folder.
    2. In the Inspector window, check Editor under Include Platforms.
    3. In the Unity project explorer, navigate to Xbox Live\Libs\UnityEditor\NET35 and select all of the DLLs in the folder.
    4. In the Inspector window, uncheck Editor under Include Platforms.
     
    suleman4212 likes this.
  3. snowconesolid

    snowconesolid

    Joined:
    Dec 9, 2011
    Posts:
    868
    Thank you! This worked!
    I could not find a solution anywhere for this.
     
    sstrong likes this.