Created
February 23, 2021 01:36
-
-
Save xximjasonxx/d31893dc7df45e50d1b02b600f70d914 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
Host.CreateDefaultBuilder() | |
.ConfigureAppConfiguration((_, builder) => | |
builder.SetBasePath(Directory.GetCurrentDirectory()) | |
.AddJsonFile("appsettings.json", optional: false) | |
.AddJsonFile($"appsettings.{System.Environment.GetEnvironmentVariable("ENV")}.json", optional: true) | |
.Build()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment