Skip to content

Instantly share code, notes, and snippets.

@jinhduong
Created July 19, 2018 04:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jinhduong/60c639e4c2884737bdbb0cd138a9a9f6 to your computer and use it in GitHub Desktop.
public partial class Startup
{
public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: false, reloadOnChange: true)
.AddEnvironmentVariables();
Configuration = builder.Build();
}
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment