Added EonaCat Env testers
This commit is contained in:
parent
c018d1073b
commit
c8c7d0a3a2
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.4.33110.190
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnvTester", "EnvTester\EnvTester.csproj", "{78DDE4D5-62A6-44C1-A3E3-9A81137499F0}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{78DDE4D5-62A6-44C1-A3E3-9A81137499F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{78DDE4D5-62A6-44C1-A3E3-9A81137499F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{78DDE4D5-62A6-44C1-A3E3-9A81137499F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{78DDE4D5-62A6-44C1-A3E3-9A81137499F0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {8FC85EAC-82EA-42F6-8CA3-551DC7F65B5C}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
|
@ -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>
|
|
@ -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");
|
Loading…
Reference in New Issue