Environment Variables in ASP.NET Core
In my last post, I covered how to handle sensitive configuration data by using User Secrets while working in development or on your local machine. The next step is how to use environment variables in ASP.NET Core once you deploy to production (eg Azure App Service)? If you have any questions, please follow me on Twitter. https://www.youtube.com/watch?v=InyWktgdWJUVideo can’t be loaded because JavaScript is disabled: Multiple Environments in ASP.NET Core (DEV, PROD) (https://www.youtube.com/watch?v=InyWktgdWJU) IHostingEnvironment In your ASP.NET Core Startup class, the ctor has a IHostingEnvironment parameter. One of the properties on it is the EnvironmentName. Along with this are a few… Read More »Environment Variables in ASP.NET Core