Reputation: 57
I am working on a .NET Framework 4.8 application and want to store configuration values in a .env
file instead of using web.config
, app.config
, or appsettings.json
.
.env
files natively?.env
file?I tried using Environment.GetEnvironmentVariable("MY_VARIABLE")
, but it only works if I manually set environment variables.
Is there any library or workaround that enables .NET Framework 4.8 to load environment variables from a .env
file or can we store environment variables in IIS?
Upvotes: 0
Views: 83