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 + + + + + + +