Created
July 19, 2018 04:12
-
-
Save jinhduong/60c639e4c2884737bdbb0cd138a9a9f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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