From aed4ad25a15f565458e84d8338c1b91d60de9ab5 Mon Sep 17 00:00:00 2001 From: yiszza <42995476+yiszza@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:31:44 +0800 Subject: [PATCH] Update --- .../IconPacksGenerator.csproj | 33 ++++++++++--------- src/IconPacksGenerator/Util.cs | 8 ++--- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/IconPacksGenerator/IconPacksGenerator.csproj b/src/IconPacksGenerator/IconPacksGenerator.csproj index d72eb2c..15cad2b 100644 --- a/src/IconPacksGenerator/IconPacksGenerator.csproj +++ b/src/IconPacksGenerator/IconPacksGenerator.csproj @@ -1,16 +1,17 @@ - - - - Exe - net7.0 - enable - enable - - - - - - - - - + + + + Exe + net7.0 + enable + enable + + + + + + + + + + diff --git a/src/IconPacksGenerator/Util.cs b/src/IconPacksGenerator/Util.cs index 21009bf..d5dc981 100644 --- a/src/IconPacksGenerator/Util.cs +++ b/src/IconPacksGenerator/Util.cs @@ -76,10 +76,10 @@ internal static string GetCamelId(this string id) internal static void OutputIconKindFile(Dictionary iconKinds, string type) { var sb = new StringBuilder(); - sb.AppendLine($"using System.Collections.Generic;"); - sb.AppendLine($"namespace IconPacks.{type}"); + sb.AppendLine("using System.Collections.Generic;"); + sb.AppendLine("namespace IconPacks.IconKind"); sb.AppendLine("{"); - sb.AppendLine("\tpublic static class IconKind"); + sb.AppendLine($"\tpublic static class {type}"); sb.AppendLine("\t{"); if (iconKinds.Count > 0) @@ -96,7 +96,7 @@ internal static void OutputIconKindFile(Dictionary iconKinds, st } File.WriteAllText( - Path.Combine(Paths.RootPath, $"./IconPacks.{type}/IconKind.cs"), + Path.Combine(Paths.RootPath, $"./IconPacks.{type}/{type}.cs"), sb.ToString() ); }