From 3da252f636e750ff1ef6acdfe585dd757675d4db Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Tue, 10 Sep 2024 01:52:43 +0200 Subject: [PATCH] Utilities: ReadItems: Set Central package management - Update NugetPackages --- Utilities/ReadItems/ConsoleApp10/Program.cs | 15 +++++++++------ Utilities/ReadItems/ConsoleApp10/ReadWowDb.csproj | 5 ++--- Utilities/ReadItems/Directory.Packages.props | 10 ++++++++++ 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 Utilities/ReadItems/Directory.Packages.props diff --git a/Utilities/ReadItems/ConsoleApp10/Program.cs b/Utilities/ReadItems/ConsoleApp10/Program.cs index dda6475a9..b545e1f1a 100644 --- a/Utilities/ReadItems/ConsoleApp10/Program.cs +++ b/Utilities/ReadItems/ConsoleApp10/Program.cs @@ -6,7 +6,7 @@ namespace ConsoleApp10 { - internal sealed class Program + internal sealed partial class Program { internal sealed class Creature { @@ -64,7 +64,7 @@ private static void ExtractItemTemplate(string file, string template, Action columnIndexs, string v) @@ -131,5 +131,8 @@ private static int FindIndex(List columnIndexs, string v) } throw new ArgumentOutOfRangeException(v); } + + [GeneratedRegex(@"\(\d.*?\)(,|;)")] + public static partial Regex MyRegex(); } } \ No newline at end of file diff --git a/Utilities/ReadItems/ConsoleApp10/ReadWowDb.csproj b/Utilities/ReadItems/ConsoleApp10/ReadWowDb.csproj index 75eee6cfc..ad13db54a 100644 --- a/Utilities/ReadItems/ConsoleApp10/ReadWowDb.csproj +++ b/Utilities/ReadItems/ConsoleApp10/ReadWowDb.csproj @@ -2,12 +2,11 @@ Exe - net7.0 - - + + diff --git a/Utilities/ReadItems/Directory.Packages.props b/Utilities/ReadItems/Directory.Packages.props new file mode 100644 index 000000000..c69820655 --- /dev/null +++ b/Utilities/ReadItems/Directory.Packages.props @@ -0,0 +1,10 @@ + + + net9.0 + true + + + + + + \ No newline at end of file