From 83a87491bbb8c2f9163ab775fed4310bc155027c Mon Sep 17 00:00:00 2001 From: Ryan Gregory Date: Sat, 17 Feb 2024 19:15:32 -0500 Subject: [PATCH] Change how the version is implemented (#12) Changed from finding 1.0.0 & replacing to just replacing {version} with "replaces": "{version}" --- .../.template.config/template.json | 22 +------------------ .../BepInEx5.PluginTemplate.csproj | 2 +- .../.template.config/template.json | 22 +------------------ ...BepInEx6.PluginTemplate.NET.CoreCLR.csproj | 2 +- .../.template.config/template.json | 22 +------------------ ...pInEx6.PluginTemplate.NET.Framework.csproj | 2 +- .../.template.config/template.json | 22 +------------------ ...epInEx6.PluginTemplate.Unity.Il2Cpp.csproj | 2 +- .../.template.config/template.json | 22 +------------------ .../BepInEx6.PluginTemplate.Unity.Mono.csproj | 2 +- 10 files changed, 10 insertions(+), 110 deletions(-) diff --git a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/.template.config/template.json b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/.template.config/template.json index 6d95848..a1784ab 100644 --- a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/.template.config/template.json +++ b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/.template.config/template.json @@ -37,28 +37,8 @@ "type": "parameter", "description": "Plugin version", "datatype": "text", + "replaces": "{version}", "defaultValue": "1.0.0" - }, - "VersionImpl": { - "type": "generated", - "generator": "join", - "replaces": "1.0.0", - "parameters": { - "symbols": [ - { - "type": "const", - "value": "" - }, - { - "type": "ref", - "value": "Version" - }, - { - "type": "const", - "value": "" - } - ] - } } } } \ No newline at end of file diff --git a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/BepInEx5.PluginTemplate.csproj b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/BepInEx5.PluginTemplate.csproj index b558248..8080952 100644 --- a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/BepInEx5.PluginTemplate.csproj +++ b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/BepInEx5.PluginTemplate.csproj @@ -4,7 +4,7 @@ net35 BepInEx5.PluginTemplate My first plugin - 1.0.0 + {version} true latest diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/.template.config/template.json b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/.template.config/template.json index b412494..992cb47 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/.template.config/template.json +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/.template.config/template.json @@ -30,28 +30,8 @@ "type": "parameter", "description": "Plugin version", "datatype": "text", + "replaces": "{version}", "defaultValue": "1.0.0" - }, - "VersionImpl": { - "type": "generated", - "generator": "join", - "replaces": "1.0.0", - "parameters": { - "symbols": [ - { - "type": "const", - "value": "" - }, - { - "type": "ref", - "value": "Version" - }, - { - "type": "const", - "value": "" - } - ] - } } } } \ No newline at end of file diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/BepInEx6.PluginTemplate.NET.CoreCLR.csproj b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/BepInEx6.PluginTemplate.NET.CoreCLR.csproj index cb71d86..c3a285b 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/BepInEx6.PluginTemplate.NET.CoreCLR.csproj +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/BepInEx6.PluginTemplate.NET.CoreCLR.csproj @@ -4,7 +4,7 @@ net6.0 BepInEx6.PluginTemplate.NET.CoreCLR My first plugin - 1.0.0 + {version} true latest diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/.template.config/template.json b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/.template.config/template.json index 1efae84..296ac33 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/.template.config/template.json +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/.template.config/template.json @@ -30,28 +30,8 @@ "type": "parameter", "description": "Plugin version", "datatype": "text", + "replaces": "{version}", "defaultValue": "1.0.0" - }, - "VersionImpl": { - "type": "generated", - "generator": "join", - "replaces": "1.0.0", - "parameters": { - "symbols": [ - { - "type": "const", - "value": "" - }, - { - "type": "ref", - "value": "Version" - }, - { - "type": "const", - "value": "" - } - ] - } } } } \ No newline at end of file diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/BepInEx6.PluginTemplate.NET.Framework.csproj b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/BepInEx6.PluginTemplate.NET.Framework.csproj index 776dba1..8bdf4f8 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/BepInEx6.PluginTemplate.NET.Framework.csproj +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/BepInEx6.PluginTemplate.NET.Framework.csproj @@ -4,7 +4,7 @@ net452 BepInEx6.PluginTemplate.NET.Framework My first plugin - 1.0.0 + {version} true latest diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/.template.config/template.json b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/.template.config/template.json index 39db502..b9df2ad 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/.template.config/template.json +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/.template.config/template.json @@ -30,28 +30,8 @@ "type": "parameter", "description": "Plugin version", "datatype": "text", + "replaces": "{version}", "defaultValue": "1.0.0" - }, - "VersionImpl": { - "type": "generated", - "generator": "join", - "replaces": "1.0.0", - "parameters": { - "symbols": [ - { - "type": "const", - "value": "" - }, - { - "type": "ref", - "value": "Version" - }, - { - "type": "const", - "value": "" - } - ] - } } } } \ No newline at end of file diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/BepInEx6.PluginTemplate.Unity.Il2Cpp.csproj b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/BepInEx6.PluginTemplate.Unity.Il2Cpp.csproj index c3ec0b1..a438258 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/BepInEx6.PluginTemplate.Unity.Il2Cpp.csproj +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/BepInEx6.PluginTemplate.Unity.Il2Cpp.csproj @@ -4,7 +4,7 @@ net6.0 BepInEx6.PluginTemplate.Unity.Il2Cpp My first plugin - 1.0.0 + {version} true latest diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/.template.config/template.json b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/.template.config/template.json index 2c0c860..205ad9d 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/.template.config/template.json +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/.template.config/template.json @@ -37,28 +37,8 @@ "type": "parameter", "description": "Plugin version", "datatype": "text", + "replaces": "{version}", "defaultValue": "1.0.0" - }, - "VersionImpl": { - "type": "generated", - "generator": "join", - "replaces": "1.0.0", - "parameters": { - "symbols": [ - { - "type": "const", - "value": "" - }, - { - "type": "ref", - "value": "Version" - }, - { - "type": "const", - "value": "" - } - ] - } } } } \ No newline at end of file diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/BepInEx6.PluginTemplate.Unity.Mono.csproj b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/BepInEx6.PluginTemplate.Unity.Mono.csproj index f675b73..4b9ded8 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/BepInEx6.PluginTemplate.Unity.Mono.csproj +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/BepInEx6.PluginTemplate.Unity.Mono.csproj @@ -4,7 +4,7 @@ net35 BepInEx6.PluginTemplate.Unity.Mono My first plugin - 1.0.0 + {version} true latest