I have a source generator where a user is allowed to provide some code block in order to configure the generator. Then I compile and run it via CSharpCompilation infrastructure. It works fine on Windows but stops working on Mac. It fails on Assembly.Load(...)
and I also noticed that there is a warning that Assembly.Load is banned to be used in source generators. Is there a way to compile and run piece of user-defined code in a source generator that works on all the platforms?