private void WriteCore(DependencyContext context, UnifiedJsonWriter jsonWriter)
 {
     jsonWriter.WriteStartObject();
     WriteRuntimeTargetInfo(context, ref jsonWriter);
     WriteCompilationOptions(context.CompilationOptions, ref jsonWriter);
     WriteTargets(context, ref jsonWriter);
     WriteLibraries(context, ref jsonWriter);
     if (context.RuntimeGraph.Any())
     {
         WriteRuntimeGraph(context, ref jsonWriter);
     }
     jsonWriter.WriteEndObject();
     jsonWriter.Flush();
 }