After following the manual instructions and other members’ suggestions on this forum I managed to get the example Source Generator to run in a test project on version 2020.3. However, after upgrading to 2021.3 they stop working.
Has anyone managed to use Source Generators in Unity 2021.x?
I didn’t tried in 2020.3, but I have some working in 2021.3 using the Microsoft.CodeAnalysis.CSharp 3.9 (instead of the linked 3.8), so you may need to recompile the DLLs against 3.9 for it to work on 2021.3