Add missing import to C# output
This commit is contained in:
@ -125,6 +125,7 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> {
|
||||
t.forEach((l) => lines.push(" ".repeat(i) + l.trim()));
|
||||
};
|
||||
|
||||
a(0, `using System;`);
|
||||
a(0, `using System.Text.Json;`);
|
||||
a(0, `using System.Text.Json.Serialization;`);
|
||||
a(0, `using System.Text.Json.Nodes;`);
|
||||
@ -212,6 +213,7 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> {
|
||||
t.forEach((l) => lines.push(" ".repeat(i) + l.trim()));
|
||||
};
|
||||
|
||||
a(0, `using System;`);
|
||||
a(0, `using System.Text.Json;`);
|
||||
a(0, `using System.Text.Json.Serialization;`);
|
||||
a(0, `using System.Text.Json.Nodes;`);
|
||||
|
Reference in New Issue
Block a user