Added EonaCat Env testers

This commit is contained in:
2022-12-07 18:54:02 +01:00
parent c018d1073b
commit c8c7d0a3a2
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Reference Include="EonaCat.Env">
<HintPath>..\..\..\EonaCat.Env\EonaCat.Env\bin\Debug\netstandard2.1\EonaCat.Env.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,13 @@
// See https://aka.ms/new-console-template for more information
using EonaCat.Env;
using EonaCat.Env.Helpers;
Console.WriteLine("Hello, World!");
Env.LoadIntoEnvironment();
var test = Env.Read(new Settings(traverseDirectories:true));
Getter.SwallowExceptions = true;
Console.WriteLine(Environment.GetEnvironmentVariable("nummer4"));
Console.WriteLine(Getter.GetString("nummer4"));
Console.WriteLine("+------+");
Console.WriteLine(Environment.GetEnvironmentVariable("FAAL"));
Console.WriteLine("test");