Skip to content

Instantly share code, notes, and snippets.

@dmitry-zaets
Created May 17, 2017 11:32
Show Gist options
  • Save dmitry-zaets/4983ef3173e7611a2c31c09afb22027c to your computer and use it in GitHub Desktop.
Save dmitry-zaets/4983ef3173e7611a2c31c09afb22027c to your computer and use it in GitHub Desktop.
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile(“config.json”, optional: true, reloadOnChange: true)
.AddJsonFile($”appsettings.{env.EnvironmentName}.json”, optional: true)
.AddEnvironmentVariables();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment