Current unity SDK does not go well with .net 4.6

1,226 views
Skip to first unread message

Thaina Yu

unread,
Aug 19, 2017, 1:16:54 PM8/19/17
to Firebase Google Group
Now unity3D latest version is 2017.1 which enable .NET 4.6 and C#6

But it seem like Firebase Unity SDK use custom Task library which cannot use async/await and cause error to remove it from Parse folder

What will be the future of unity SDK in unity 2017. Will we be using Firebase Xamarin SDK instead?

Stewart Miles

unread,
Aug 21, 2017, 1:40:42 PM8/21/17
to Firebase Google Group
Right now .NET 4.6 is experimental in Unity 2017.  We ship plugins that have .NET 3.5 DLLs enabled by default.  We also ship a .NET 4.6 type forwarding DLL for the Parse Tasks compatibility library which can be enabled by:
  • Switch your project to .NET 3.x
  • Import Firebase plugins (everything *must* compile)
  • Switch your project to .NET 4.x - This process will enable the .NET 4.x DLLs and disable the .NET 3.x DLLs.
Alternatively you can do this manually by doing the following:
  • Delete Parse/Plugins/Unity.Tasks.dll
  • Enable Parse/Plugins/dotNet45/Unity.Tasks.dll for all platforms (it's disabled by default)
If / when Unity decide to switch to .NET 4.x by default we'll do the same.  Even better you could help us lobby Unity to have .NET version specific DLLs then we wouldn't need to do this dance.  Right now we would prefer to not ship separate plugin distributions for .NET 3.x and .NET 4.x as they only differ by one DLL.

If you want to use Firebase Xamarin, you can go ahead but you'll miss a lot of features offered by the Unity SDK.

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/81c7326e-40b0-49db-ae6c-7955dff72b2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thaina Yu

unread,
Aug 23, 2017, 2:43:57 AM8/23/17
to Firebase Google Group
Thank you for your response. But would you please explain how to manually enable Parse/Plugins/dotNet45/Unity.Tasks.dll ?

Stewart Miles

unread,
Aug 23, 2017, 1:58:21 PM8/23/17
to Firebase Google Group
You need to change each DLL's import settings, see https://docs.unity3d.com/Manual/ImportSettings.html

Here's the required settings in .NET 3.5...

Parse/Unity.Tasks.dll

Parse/dotNet45/Unity.Tasks.dll


--------------------------------------

And the required settings for .NET 4.6...

Parse/Unity.Tasks.dll


Parse/dotNet45/Unity.Tasks.dll




On Tue, Aug 22, 2017 at 8:23 AM, Thaina Yu <thai...@gmail.com> wrote:
Thank you for your response. But would you please explain how to manually enable Parse/Plugins/dotNet45/Unity.Tasks.dll ?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.

Thaina Yu

unread,
Aug 24, 2017, 2:04:46 AM8/24/17
to Firebase Google Group
Thank you very much
Reply all
Reply to author
Forward
0 new messages