feat: 添加测试项目并更新解决方案配置
This commit is contained in:
24
Test/Program.cs
Normal file
24
Test/Program.cs
Normal file
@@ -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; }
|
||||
}
|
15
Test/Test.csproj
Normal file
15
Test/Test.csproj
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<LangVersion>latestmajor</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\JackCraft.Config\JackCraft.Config.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user