Added EonaCat Env testers
This commit is contained in:
16
EnvTester/EnvTester/EnvTester.csproj
Normal file
16
EnvTester/EnvTester/EnvTester.csproj
Normal 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>
|
13
EnvTester/EnvTester/Program.cs
Normal file
13
EnvTester/EnvTester/Program.cs
Normal 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");
|
Reference in New Issue
Block a user