Created
December 20, 2019 04:54
-
-
Save PradeepLoganathan/53a82c0f676099c77a9c34708e12b5fc to your computer and use it in GitHub Desktop.
.net core console application - reading environmental variables
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
static async Task Main(string[] args) | |
{ | |
IConfiguration Configuration = new ConfigurationBuilder() | |
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) | |
.AddEnvironmentVariables() | |
.AddCommandLine(args) | |
.Build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment