I found Ucompile but seems like it isn't supported anymore. I also found Roslyn but don't want to pay for a hobby project.
So I installed uCompiler but it tells me that "AppDomain does not contain a definition for CreateInstanceFromAndUnwrap"
Tried to see if I could call AppDomain and call the method that way, but without luck. I expect it to compile but since it can't find the CreateInstanceFromAndUnwrap method it doesn't.