Renaming csharp_namespace

This commit is contained in:
K35 2022-01-10 14:15:06 +00:00
parent 8419ecdd09
commit 6236a14377
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import "./import"; import "./import";
define CSharp_Namespace Example; define csharp_namespace Example;
enum TestEnum { enum TestEnum {
VAL1, VAL1,

View File

@ -10443,7 +10443,7 @@ function toCSharpType(type) {
var CSharpTarget = class extends CompileTarget { var CSharpTarget = class extends CompileTarget {
name = "c#"; name = "c#";
get namespace() { get namespace() {
return this.options.CSharp_Namespace || "JRPC"; return this.options.csharp_namespace || "JRPC";
} }
start() { start() {
this.writeFile(this.namespace + ".csproj", this.getTemplate("CSharp/CSharp.csproj")); this.writeFile(this.namespace + ".csproj", this.getTemplate("CSharp/CSharp.csproj"));

View File

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

View File

@ -21,11 +21,11 @@ function toCSharpType(type: string): string {
return (conversion as any)[type] || type; 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#"; name: string = "c#";
get namespace() { get namespace() {
return this.options.CSharp_Namespace || "JRPC"; return this.options.csharp_namespace || "JRPC";
} }
start(): void { start(): void {