Created
November 26, 2019 11:58
-
-
Save MartinZikmund/f5e66e49a1532e35b26155c6a9e93587 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
private readonly IConfigurationRoot _configurationRoot; | |
public AppConfig() | |
{ | |
var builder = new ConfigurationBuilder() | |
.SetBasePath(Package.Current.InstalledLocation.Path) | |
.AddJsonFile("appsettings.json", optional: false); | |
_configurationRoot = builder.Build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment