Answers for "Environment.GetEnvironmentVariable(EnvironmentVariables.AspnetCoreEnvironment) equivalent 3.1"

C#
1

csharp check if env is development

bool isDevelopment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";
Posted by: Guest on May-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language