language-ext icon indicating copy to clipboard operation
language-ext copied to clipboard

Doesn't seems to work with Unity 2020.3

Open RomainBitard opened this issue 3 years ago • 4 comments

Hello, did anyone test this lib with Unity 2020.3 ? I imported the dll extracted from the nuget package into my asset folder but there are compilation errors and missing references. Is it my way of importing the dll or it's not working with unity ?

RomainBitard avatar Feb 14 '22 17:02 RomainBitard

Assembly 'Assets/LanguageExt.Core.dll' will not be loaded due to errors: Unable to resolve reference 'System.Threading.Tasks.Extensions'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'System.Buffers'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'System.Memory'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'Microsoft.Bcl.AsyncInterfaces'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.

RomainBitard avatar Feb 14 '22 17:02 RomainBitard

Does anyone have any insight here? I'm not a Unity user, so I'm not sure what it does and doesn't support.

louthy avatar Feb 22 '22 13:02 louthy

I'm neither a unity user or C# user so I might be doing something wrong, unzipping the nuget package is ok from a C# point of view ?

RomainBitard avatar Feb 22 '22 17:02 RomainBitard

I managed to make Language-ext work (didn't test everything obviously but the few features I tested worked really great on windows/android. Here are my steps to make it work even in unit testing :

  • Download 4.0.3

  • Extract folder pjv into a folder of your choice (I named mine LanguageExt) in unity Asset folder (except Newtonsoft.json.dll because unity already has one (on 2020.3 LTS).

To make it work in unit tests :

  • In your test assembly definition tick override references and import all the dlls image

RomainBitard avatar Mar 25 '22 15:03 RomainBitard