You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new EnvLoader().SetEnvironmentName("test").LoadEnv();
System.Console.WriteLine(Env.IsTest());// output: False (should be True)
The LoavEnv method does not set the DOTNET_ENV variable and for that reason the output is False instead of True, since the Env class methods access the DOTNET_ENV variable.
Another example:
new EnvLoader().LoadEnv();
System.Console.WriteLine(Env.Development());// output: False (should be True)
The text was updated successfully, but these errors were encountered:
Example:
The
LoavEnv
method does not set theDOTNET_ENV
variable and for that reason the output isFalse
instead ofTrue
, since theEnv
class methods access theDOTNET_ENV
variable.Another example:
The text was updated successfully, but these errors were encountered: