louthy / language-ext

C# functional language extensions - a base class library for functional programming
MIT License
6.37k stars 413 forks source link

How to make LanguageExt.CodeGen work on Unity? #1288

Open Houtamelo opened 7 months ago

Houtamelo commented 7 months ago

Based on my understanding (after spending 6+ hours researching), Unity only supports source generators introduced in C# 9. This library uses CodeGeneration.Roslyn which acts on MSBuild (something we can't do in Unity).

Has any Unity user managed to setup LanguageExt.CodeGen on Unity?

If not, I might attempt to port this library to C# 9's Source generators.

louthy commented 7 months ago

If not, I might attempt to port this library to C# 9's Source generators

I'm doing that. But it's not a port, it's a whole new powerful meta-programming system, so won't be quickly implemented.

It will be a new project called LanguageExt.SourceGen; I'll then mothball the LanguageExt.CodeGen project

Houtamelo commented 7 months ago

Are you accepting contributors already?