From 7cc2a27420e872e51412591db75e6312e1cbd16d Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sun, 13 Feb 2022 23:50:45 +0000 Subject: [PATCH] Add missing import to C# output --- package.json | 2 +- src/targets/csharp.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0bcd93d..7dac7e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.0.26", + "version": "1.0.27", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/src/targets/csharp.ts b/src/targets/csharp.ts index 2699120..ce8d099 100644 --- a/src/targets/csharp.ts +++ b/src/targets/csharp.ts @@ -129,6 +129,7 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> { a(0, `using System.Text.Json.Serialization;`); a(0, `using System.Text.Json.Nodes;`); a(0, `using System.Threading.Tasks;`); + a(0, `using System.Collections.Generic;`); a(0, ``); a(0, `namespace ${this.namespace};`); a(0, ``); @@ -215,6 +216,7 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> { a(0, `using System.Text.Json.Serialization;`); a(0, `using System.Text.Json.Nodes;`); a(0, `using System.Threading.Tasks;`); + a(0, `using System.Collections.Generic;`); a(0, ``); a(0, `namespace ${this.namespace};`); a(0, ``);