Srijan
Srijan

Reputation: 57

Does .NET Framework 4.8 support .env files for configuration?

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.

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

Answers (0)

Related Questions