diff --git a/examples/example.jrpc b/examples/example.jrpc index 723243c..cecfccf 100644 --- a/examples/example.jrpc +++ b/examples/example.jrpc @@ -1,6 +1,6 @@ import "./import"; -define CSharp_Namespace Example; +define csharp_namespace Example; enum TestEnum { VAL1, diff --git a/lib/jrpc.js b/lib/jrpc.js index 9099b16..3d284c8 100755 --- a/lib/jrpc.js +++ b/lib/jrpc.js @@ -10443,7 +10443,7 @@ function toCSharpType(type) { var CSharpTarget = class extends CompileTarget { name = "c#"; get namespace() { - return this.options.CSharp_Namespace || "JRPC"; + return this.options.csharp_namespace || "JRPC"; } start() { this.writeFile(this.namespace + ".csproj", this.getTemplate("CSharp/CSharp.csproj")); diff --git a/package.json b/package.json index be3b473..02ffde6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.0.18", + "version": "1.0.19", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/src/targets/csharp.ts b/src/targets/csharp.ts index 28f8505..1a44a30 100644 --- a/src/targets/csharp.ts +++ b/src/targets/csharp.ts @@ -21,11 +21,11 @@ function toCSharpType(type: string): string { return (conversion as any)[type] || type; } -export class CSharpTarget extends CompileTarget<{ CSharp_Namespace: string }> { +export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> { name: string = "c#"; get namespace() { - return this.options.CSharp_Namespace || "JRPC"; + return this.options.csharp_namespace || "JRPC"; } start(): void {