This example generates .NET Core 3.1 targeting console app assembly using System.Reflection.Metadata.Ecma335.MetadataBuilder. "ConsoleApplication.runtimeconfig.json" file should be copied into the output directory to run the generated file using shared host (dotnet ConsoleApplication.dll command).