Add missing import to C# output

This commit is contained in:
Fabian Stamm 2022-02-13 23:52:50 +00:00
parent 7cc2a27420
commit 3ececad91b
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/jrpcgen",
"version": "1.0.27",
"version": "1.0.28",
"main": "lib/index.js",
"license": "MIT",
"packageManager": "yarn@3.1.1",

View File

@ -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;`);