microsoft / xbox-live-unity-plugin

The Xbox Live Unity Plugin provides a way for developers in the Xbox Live Creators Program to quickly and easily integrate Xbox Live functionality into their Unity based game. For ID@Xbox developers, this Xbox Live Unity Plugin does not yet support all the features you will need. Instead, contact your Microsoft representative.
MIT License
168 stars 55 forks source link

ambiguous class Task #284

Open HudsonSchumaker opened 5 years ago

HudsonSchumaker commented 5 years ago

Hello, after import the package i have this error on the console: Library\PackageCache\com.unity.textmeshpro@2.0.1\Scripts\Editor\TMP_PackageUtilities.cs(310,17): 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 tried to full qualify the class using System.Threading.Tasks.Task but the error continues.

PhoenixDev92 commented 5 years ago

I had the same issue. Make sure to follow the steps under 'Configure the plugin to work in the Unity Editor (.NET 4.6 or IL2CPP only)' on the following page Configuring Xbox Live in Unity

Lighthammer34 commented 5 years ago

I have the same issue, but additionally I don’t get the Xbox live tab at the top of unity, but I get the same error message as above, I can get it to work if I use an earlier version of unity say 2018.1 but 2019 doesn’t work get the same issue, I even tried removing textmeshpro first and then importing the plugin but I got more errors and no Xbox live tab, new to this so any help would be much appreciated

VidamaSoftware commented 4 years ago

This helped me from the configuration page:

"If your project is using the scripting runtime version of .NET 4.6, you will need to configure the plugin to work properly in the editor, as follows:

In the Unity project explorer, navigate to Xbox Live\Libs\UnityEditor\NET46 and select all of the DLLs in the folder.

In the Inspector window, check Editor under Include Platforms.

In the Unity project explorer, navigate to Xbox Live\Libs\UnityEditor\NET35 and select all of the DLLs in the folder.

In the Inspector window, uncheck Editor under Include Platforms."