From 2aeef0227cbefe30bfc24e57436123de257614ee Mon Sep 17 00:00:00 2001 From: Jack <3486688394@qq.com> Date: Tue, 21 Jan 2025 17:47:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=B9=B6=E6=9B=B4=E6=96=B0=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JackCraft.Config.sln | 6 ++++++ JackCraft.Config.sln.DotSettings.user | 4 ++++ Test/Program.cs | 24 ++++++++++++++++++++++++ Test/Test.csproj | 15 +++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 JackCraft.Config.sln.DotSettings.user create mode 100644 Test/Program.cs create mode 100644 Test/Test.csproj diff --git a/JackCraft.Config.sln b/JackCraft.Config.sln index b98e730..2b43985 100644 --- a/JackCraft.Config.sln +++ b/JackCraft.Config.sln @@ -8,6 +8,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Folder", "Solution Readme.MD = Readme.MD EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{F0FF027F-CAFB-4DD2-8B59-4CFD9DAFBB04}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -18,5 +20,9 @@ Global {96DD0E6E-8CE2-42DE-87A9-111D9198CE76}.Debug|Any CPU.Build.0 = Debug|Any CPU {96DD0E6E-8CE2-42DE-87A9-111D9198CE76}.Release|Any CPU.ActiveCfg = Release|Any CPU {96DD0E6E-8CE2-42DE-87A9-111D9198CE76}.Release|Any CPU.Build.0 = Release|Any CPU + {F0FF027F-CAFB-4DD2-8B59-4CFD9DAFBB04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0FF027F-CAFB-4DD2-8B59-4CFD9DAFBB04}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0FF027F-CAFB-4DD2-8B59-4CFD9DAFBB04}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0FF027F-CAFB-4DD2-8B59-4CFD9DAFBB04}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/JackCraft.Config.sln.DotSettings.user b/JackCraft.Config.sln.DotSettings.user new file mode 100644 index 0000000..c9fbfed --- /dev/null +++ b/JackCraft.Config.sln.DotSettings.user @@ -0,0 +1,4 @@ + + ForceIncluded + ForceIncluded + ForceIncluded \ No newline at end of file diff --git a/Test/Program.cs b/Test/Program.cs new file mode 100644 index 0000000..38fc987 --- /dev/null +++ b/Test/Program.cs @@ -0,0 +1,24 @@ +using JackCraft.Config; + +namespace Test; + +internal static class Program +{ + private static void Main(string[] args) + { + Console.WriteLine("Hello, World!"); + var testClass = new TestClass + { + Test = "test", + Abc = 123 + }; + var config = new Config(new FileInfo("./config.json")); + var t = config.Get("aaa.www.aaa.ccc", "1"); + } +} + +public class TestClass +{ + public string? Test { get; set; } + public int Abc { get; set; } +} \ No newline at end of file diff --git a/Test/Test.csproj b/Test/Test.csproj new file mode 100644 index 0000000..3768682 --- /dev/null +++ b/Test/Test.csproj @@ -0,0 +1,15 @@ + + + + Exe + net9.0 + latestmajor + enable + enable + + + + + + +