Dynamically run code using .NET (Core 3.0, Core 3.1, 5 and 6) Roslyn and AssemblyLoadContext
You can read about it on my blog "Dynamically compile and run code using .NET Core 3.0"
<PackageReference Include="Microsoft.CodeAnalysis.Compilers" Version="4.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.2.0" />
<PackageReference Include="System.Reactive" Version="5.0.0" />