I have created .env file in the root of the asp.net mvc application and is trying to load using below code
DotNetEnv.Env.Load();
var value = System.Environment.GetEnvironmentVariable("HELLO");
value is always Null. I tried using below code aswell but no luck. Are you sure this works with .NET Framework 4.6 + ??
DotNetEnv.Env.TraversePath().Load();
I have created .env file in the root of the asp.net mvc application and is trying to load using below code
DotNetEnv.Env.Load(); var value = System.Environment.GetEnvironmentVariable("HELLO");
value is always Null. I tried using below code aswell but no luck. Are you sure this works with .NET Framework 4.6 + ?? DotNetEnv.Env.TraversePath().Load();