question

scottadams avatar image
scottadams asked

Upgrade Playfab SDK in Unity getting CS0433 error

When upgrading Playfab API from 2.97.201014 to 2.109.210521 ini Unity 2019.4.26f1 I get


Assets\PlayFabSDK\PlayFabSDK\Shared\Public\PluginManager.cs(9,17): error CS0433: The type 'ConcurrentDictionary<TKey, TValue>' exists in both 'System.Threading.Tasks.NET35, Version=3.0.2.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

unity3d
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image Seth Du ♦ commented ·

Will you try to remove the PlayFab SDK folder and reinstall it?

0 Likes 0 ·
scottadams avatar image scottadams Seth Du ♦ commented ·

Yes, good idea. I tried that. Took a while to do and but still gave the same error the update version did. But was a good thing to try

0 Likes 0 ·

1 Answer

·
scottadams avatar image
scottadams answered

For anyone finding this later, I fixed it by going into Unity edito and finding the System.Threading.Tasks.NET35.dll In the inspector I set it to not auto reference and to not validate references.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JayZuo avatar image JayZuo ♦ commented ·

Glad to know you've solved this issue. But we'd still suggest you remove the whole "PlayFabSDK" folder and reinstall it as "System.Threading.Tasks.NET35.dll" is not included in 2.109.210521.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.