Created
April 19, 2020 04:10
-
-
Save scottsauber/42b7f6ad82e96bc5c35edab50e6ccf7e to your computer and use it in GitHub Desktop.
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
var configurationBuilder = new ConfigurationBuilder() | |
.AddJsonFile("appsettings.json") | |
.AddJsonFile($"appsettings.{Environment}.json"); | |
if (Environment.IsDevelopment()) | |
{ | |
configurationBuilder.AddUserSecrets(); | |
} | |
configurationBuilder.AddEnvironmentVariables(); | |
var configuration = configurationBuilder.Build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment