From c3b812e509ca2b91ecbda38ba382bb5b44f11e53 Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:04:08 +0200 Subject: [PATCH 1/6] ability to set namespace --- templates/nuget-classlib/.template.config/template.json | 9 ++++++++- templates/nuget-classlib/ClassLibrary/SampleClass.cs | 2 +- templates/nuget-classlib/Tests/SampleClassTest.cs | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/templates/nuget-classlib/.template.config/template.json b/templates/nuget-classlib/.template.config/template.json index b74f012..e7c3bcd 100644 --- a/templates/nuget-classlib/.template.config/template.json +++ b/templates/nuget-classlib/.template.config/template.json @@ -35,5 +35,12 @@ } ] } - ] + ], + "symbols": { + "namespace": { + "type": "parameter", + "defaultValue": "Kurmann", + "replaces": "RootNamespace" + } + } } \ No newline at end of file diff --git a/templates/nuget-classlib/ClassLibrary/SampleClass.cs b/templates/nuget-classlib/ClassLibrary/SampleClass.cs index d09d338..6ae55d8 100644 --- a/templates/nuget-classlib/ClassLibrary/SampleClass.cs +++ b/templates/nuget-classlib/ClassLibrary/SampleClass.cs @@ -1,4 +1,4 @@ -namespace Kurmann.ClassLibrary; +namespace RootNamespace.ClassLibrary; public class SampleClass { diff --git a/templates/nuget-classlib/Tests/SampleClassTest.cs b/templates/nuget-classlib/Tests/SampleClassTest.cs index 27ec784..765a1d0 100644 --- a/templates/nuget-classlib/Tests/SampleClassTest.cs +++ b/templates/nuget-classlib/Tests/SampleClassTest.cs @@ -1,4 +1,4 @@ -namespace Kurmann.ClassLibrary.Tests; +namespace RootNamespace.ClassLibrary.Tests; [TestClass] public class SampleClassTest From 7ab5862f72ae3be20ed24452596e3c6ab2dcb6db Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:06:15 +0200 Subject: [PATCH 2/6] version --- Templates.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates.csproj b/Templates.csproj index 75be123..624577c 100644 --- a/Templates.csproj +++ b/Templates.csproj @@ -28,7 +28,7 @@ sollten stattdessen durch den CI/CD-Prozess gesteuert werden. Die Release Notes für jede Version sollten separat gepflegt und vor dem Merge in den 'main'-Branch aktualisiert werden. --> - 0.3.2 + 0.4.0 Siehe README.md für Details. From 73b272c92514b7ee5bac6a64f2b91b0a8bdcc77c Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:06:22 +0200 Subject: [PATCH 3/6] changelog --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 66c07ed..85bd6fc 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,10 @@ Das Projekt steht unter der [Apache 2.0 Lizenz](LICENSE). - Neues Template um ein ganzes GitHub-Repository zu erstellen mit .NET-Projekten, Gitignore, Nuget-Packaging-Workflows +### Version 0.4.0 - 2024-04-08 + +- Klassenbibliothekts-Template unterstützt die Angabe von Namespaces + ### Version 0.3.2 - 2024-04-08 #### Hinzugefügt From 7f7d72fce50a2bfd53521a7c60b7a551d633d2d8 Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:12:03 +0200 Subject: [PATCH 4/6] not yet a minor version --- README.md | 4 +++- Templates.csproj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85bd6fc..a7722c3 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,9 @@ Das Projekt steht unter der [Apache 2.0 Lizenz](LICENSE). - Neues Template um ein ganzes GitHub-Repository zu erstellen mit .NET-Projekten, Gitignore, Nuget-Packaging-Workflows -### Version 0.4.0 - 2024-04-08 +### Version 0.3.3 - 2024-04-08 + +#### Hinzugefügt - Klassenbibliothekts-Template unterstützt die Angabe von Namespaces diff --git a/Templates.csproj b/Templates.csproj index 624577c..16fa423 100644 --- a/Templates.csproj +++ b/Templates.csproj @@ -28,7 +28,7 @@ sollten stattdessen durch den CI/CD-Prozess gesteuert werden. Die Release Notes für jede Version sollten separat gepflegt und vor dem Merge in den 'main'-Branch aktualisiert werden. --> - 0.4.0 + 0.3.3 Siehe README.md für Details. From b412799a3faa157205fd4d754b944daab5927e27 Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:21:42 +0200 Subject: [PATCH 5/6] symbol description --- templates/nuget-classlib/.template.config/template.json | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/nuget-classlib/.template.config/template.json b/templates/nuget-classlib/.template.config/template.json index e7c3bcd..832c78e 100644 --- a/templates/nuget-classlib/.template.config/template.json +++ b/templates/nuget-classlib/.template.config/template.json @@ -39,6 +39,7 @@ "symbols": { "namespace": { "type": "parameter", + "description": "The root namespace for the project e.g 'Kurmann.Videoschnitt'", "defaultValue": "Kurmann", "replaces": "RootNamespace" } From 2187f35fd60f546ab70988d1011c6516198a1335 Mon Sep 17 00:00:00 2001 From: Patrick Kurmann Date: Mon, 8 Apr 2024 18:26:58 +0200 Subject: [PATCH 6/6] renamed to namespace placeholder to avoid conflict with csproj property --- templates/nuget-classlib/.template.config/template.json | 2 +- templates/nuget-classlib/ClassLibrary/SampleClass.cs | 2 +- templates/nuget-classlib/Tests/SampleClassTest.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nuget-classlib/.template.config/template.json b/templates/nuget-classlib/.template.config/template.json index 832c78e..31df4cc 100644 --- a/templates/nuget-classlib/.template.config/template.json +++ b/templates/nuget-classlib/.template.config/template.json @@ -41,7 +41,7 @@ "type": "parameter", "description": "The root namespace for the project e.g 'Kurmann.Videoschnitt'", "defaultValue": "Kurmann", - "replaces": "RootNamespace" + "replaces": "NamespacePlaceholder" } } } \ No newline at end of file diff --git a/templates/nuget-classlib/ClassLibrary/SampleClass.cs b/templates/nuget-classlib/ClassLibrary/SampleClass.cs index 6ae55d8..d232340 100644 --- a/templates/nuget-classlib/ClassLibrary/SampleClass.cs +++ b/templates/nuget-classlib/ClassLibrary/SampleClass.cs @@ -1,4 +1,4 @@ -namespace RootNamespace.ClassLibrary; +namespace NamespacePlaceholder.ClassLibrary; public class SampleClass { diff --git a/templates/nuget-classlib/Tests/SampleClassTest.cs b/templates/nuget-classlib/Tests/SampleClassTest.cs index 765a1d0..1dd61b2 100644 --- a/templates/nuget-classlib/Tests/SampleClassTest.cs +++ b/templates/nuget-classlib/Tests/SampleClassTest.cs @@ -1,4 +1,4 @@ -namespace RootNamespace.ClassLibrary.Tests; +namespace NamespacePlaceholder.ClassLibrary.Tests; [TestClass] public class SampleClassTest