Created
January 25, 2017 05:45
-
-
Save justinyoo/a77083d296151ee23aee66a7d5164bd4 to your computer and use it in GitHub Desktop.
Adding YAML Settings into ASP.NET Core Apps
This file contains 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
// Adds YAML settings first | |
builder.AddYamlFile("appsettings.yml", optional: true); | |
// Adds JSON settings later | |
builder.AddJsonFile("appsettings.json", optional: true, adOnChange: true); | |
builder.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment