3 ms·
ASP.NET supports environment variables and uses them by default (that's how the dev/prod environment context is set). This feature is added in the `config.AddE
by manigandham 6y ago
ASP.NET supports environment variables and uses them by default (that's how the dev/prod environment context is set).
This feature is added in the `config.AddEnvironmentVariables()` line, which is already included in the default host builder. The latest releases use very good conventions and include a lot of the typical functionality. I recommend reading the docs to avoid redoing what's already there: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-5.0 https://docs.microsoft.com/en-us/aspnet/core/fundamentals/co...