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