diff --git a/Source/ConsoleApp1/ConsoleApp1.csproj b/Source/ConsoleApp1/ConsoleApp1.csproj index 1fc332d..b6b99d7 100644 --- a/Source/ConsoleApp1/ConsoleApp1.csproj +++ b/Source/ConsoleApp1/ConsoleApp1.csproj @@ -3,7 +3,6 @@ Exe net8.0 - enable enable diff --git a/Source/ConsoleApp1/Program.cs b/Source/ConsoleApp1/Program.cs index 64ae77b..ff225f0 100644 --- a/Source/ConsoleApp1/Program.cs +++ b/Source/ConsoleApp1/Program.cs @@ -1,5 +1,6 @@ // See https://aka.ms/new-console-template for more information +using System; using ConsoleApp1; Console.WriteLine("----"); diff --git a/Source/OnyxTemplate/FrameworkWriter.cs b/Source/OnyxTemplate/FrameworkWriter.cs index 0dd95c5..3d9b2e5 100644 --- a/Source/OnyxTemplate/FrameworkWriter.cs +++ b/Source/OnyxTemplate/FrameworkWriter.cs @@ -2,7 +2,6 @@ // // Copyright 2024 Morten Aune Lyrstad -using System; using System.IO; namespace Mal.OnyxTemplate @@ -24,6 +23,7 @@ public void Write() var file = new FluentWriter(_writer, 0); file.AppendLine("using System;") .AppendLine("using System.Text;") + .AppendLine("using System.Collections.Generic;") .AppendLine("#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.") .AppendLine("#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member.") .AppendLine("namespace Mal.OnyxTemplate") diff --git a/Source/OnyxTemplate/PackageVersion.txt b/Source/OnyxTemplate/PackageVersion.txt index d0e819b..dd26934 100644 --- a/Source/OnyxTemplate/PackageVersion.txt +++ b/Source/OnyxTemplate/PackageVersion.txt @@ -1 +1 @@ -1.3.0-alpha \ No newline at end of file +1.3.1-alpha \ No newline at end of file diff --git a/Source/OnyxTemplate/ReleaseNotes.txt b/Source/OnyxTemplate/ReleaseNotes.txt index a50031a..58b0829 100644 --- a/Source/OnyxTemplate/ReleaseNotes.txt +++ b/Source/OnyxTemplate/ReleaseNotes.txt @@ -1,4 +1,7 @@ -v.1.3.0-alpha +v.1.3.1-alpha + - I stupidly had implicit usings in my test project, which meant that code that shouldn't have compiled, compiled. Fixed that. + +v.1.3.0-alpha - Complete rewrite of the generator to handle _so_ many bugs... - Breaking change: Lists are no longer IEnumerable, they are now IReadOnlyList to support indexing and count without evaluating the list multiple times. - Added meta-macro support: You can now reference items in a scope higher up by prefixing fields with a period. Example: {{ .Name }} will reference the Name field in the parent scope, and {{ $if .$first }} will check if the current item is in the first item in the parent scope. You can add multiple periods to reference higher scopes.