Getting LanguageExt.Core to work with Unity
See original GitHub issueI found this while looking for functional libraries to use with Unity, and stumbled upon this, which seems to answer all my prayers.
Unfortunately Unity only supports .NET 4.6 which according to Unity is equivalent to C# 6, which means there are a bunch of features used that won’t compile.
Is there any way to get the code to work with C# 6? Or can I somehow use a prebuilt DLL instead? Currently I just imported all of LanguageExt.Core into my project, and it complains about tons of files.
When looking at the errors using (csharp-omnisharp-codecheck)
in emacs I’m informed that local functions aren’t available in C# 6.
Are there any reasonable ways to solve this?
EDIT:
This is the way to do it
This library seems compatible on the latest (at the time of writing) Unity 2018.2 with incremental compiler (which enables C# 7). So this library should work well once Unity has official support for C# 7 on upcoming 2018.3. In the meanwhile, you can install incremental compiler instead.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (7 by maintainers)
Top GitHub Comments
This library seems compatible on the latest unity 2018.2 with incremental compiler (which enable c# 7). So I guess this library will work well once unity has officially support c# 7 on upcoming 2018.3. In the meanwhile, you can install incremental compiler instead. But I just use limited function of this library without any test on il2cpp or mobile, so at your own risk.
@quabug Thanks for the update, that’s very useful. I have added a slightly reworded version of your comment to the home page.