Skip to content

Commit

Permalink
I stupidly had implicit usings in my test project, which meant that c…
Browse files Browse the repository at this point in the history
…ode that shouldn't have compiled, compiled. Fixed that.
  • Loading branch information
malware-dev committed Aug 4, 2024
1 parent 7d45499 commit f2ded0d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion Source/ConsoleApp1/ConsoleApp1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions Source/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// See https://aka.ms/new-console-template for more information

using System;
using ConsoleApp1;

Console.WriteLine("----");
Expand Down
2 changes: 1 addition & 1 deletion Source/OnyxTemplate/FrameworkWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//
// Copyright 2024 Morten Aune Lyrstad

using System;
using System.IO;

namespace Mal.OnyxTemplate
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion Source/OnyxTemplate/PackageVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0-alpha
1.3.1-alpha
5 changes: 4 additions & 1 deletion Source/OnyxTemplate/ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit f2ded0d

Please sign in to comment.