Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yiszza committed Nov 28, 2023
1 parent 9249317 commit aed4ad2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
33 changes: 17 additions & 16 deletions src/IconPacksGenerator/IconPacksGenerator.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.0" />
<PackageReference Include="Svg" Version="3.4.4" />
<PackageReference Include="System.Text.Json" Version="7.0.1" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.0" />
<PackageReference Include="Svg" Version="3.4.4" />
<PackageReference Include="System.Text.Json" Version="7.0.1" />
</ItemGroup>

</Project>

8 changes: 4 additions & 4 deletions src/IconPacksGenerator/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ internal static string GetCamelId(this string id)
internal static void OutputIconKindFile(Dictionary<string, string> 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)
Expand All @@ -96,7 +96,7 @@ internal static void OutputIconKindFile(Dictionary<string, string> iconKinds, st
}

File.WriteAllText(
Path.Combine(Paths.RootPath, $"./IconPacks.{type}/IconKind.cs"),
Path.Combine(Paths.RootPath, $"./IconPacks.{type}/{type}.cs"),
sb.ToString()
);
}
Expand Down

0 comments on commit aed4ad2

Please sign in to comment.